Monthly Archives: March 2014

WAQS: Global validation

7 reasons to use WAQS WAQS documentation   As I explained in this post and this one, WAQS helps to define entities validation. Sometimes you want a global entity validation or a global context validation. So WAQS also generate a … Continue reading

Posted in 16868 | Leave a comment

WAQS: PropertyChanged

7 reasons to use WAQS WAQS documentation   PropertyChanged logic Imagine that you want to calculate OrderDetail amount and Order total. So, using WAQS, you write the following two methods in specifications to generate Amount and Total calculated properties, as … Continue reading

Posted in 16402, 16868, 18343, 18344, 8708 | Leave a comment

WAQS: Add a bindable dynamic property

7 reasons to use WAQS WAQS documentation   This feature is only usable with WPF. It does not work with PCL. MVVM wrappers are a pain Imagine a master detail with suppliers as master and products as details. In this … Continue reading

Posted in 16868, 8708 | Leave a comment

WAQS: Cascade delete

7 reasons to use WAQS WAQS documentation   Entity Framework cascade delete behavior Entry Framework approach with Cascade Delete is strange IMHO.   Indeed, imagine that we define cascade delete on Orders to OrderDetails relationship in our model. If we … Continue reading

Posted in 16868, 7674 | Leave a comment

WAQS Save changes

7 reasons to use WAQS WAQS documentation   Self Tracking Entities Why using Self Tracking Entities? I read this post, where you can read “We no longer recommend using the STE template, it continues to be available to support existing … Continue reading

Posted in 16868, 7674 | Leave a comment

WAQS Querying: MergeOption

7 reasons to use WAQS WAQS documentation   When you query using Entity Framework, entities got are cached by default. Then, by default, if you query again and if you get some entities you already have in the EF cache, … Continue reading

Posted in 16868, 7674 | Leave a comment

WAQS Pagination

7 reasons to use WAQS WAQS documentation   Lazy Pagination With LINQ To Entities, you can use two methods for pagination: Take and Skip. Pagination on lists / grids is an enough frequent use case to develop classes that does … Continue reading

Posted in 16868 | Leave a comment

WAQS: Querying a lot of entities

7 reasons to use WAQS WAQS documentation   The waiting issue When you load 100 000 entities to show them in a ListBox for example, user experience is very bad if application freezes with a Not responding message. How to … Continue reading

Posted in 12253, 16868 | Leave a comment

Using WAQS as a layer on top of Entity Framework

7 reasons to use WAQS WAQS documentation   We saw in previous posts that WAQS adds some improvements on LINQ To WAQS (comparing to LINQ To Entities). Now the point is the fact that it would be a shame if … Continue reading

Posted in 12253, 16868, 7674 | 1 Comment