Category Archives: 16868

To WAQS or not to WAQS, that is the question – ASP.NET MVC Patterns comparison

I recently asked to some of my friends who didn’t use WAQS yet why. I got different replies. One of them was replied by many of them: I just develop basic ASP.NET MVC applications so I think WAQS is useless … Continue reading

Posted in 16868, 18472 | 2 Comments

WAQS NuGet PowerShell command usage: init ViewModel using Roslyn

If you take a look to WCFAsyncQueryableFunctionsClientWPF.psm1 of WCFAsyncQueryableServices.Client.WPF NuGet package, you can see the PowerShell command used to initialize ViewModel. After removing error and TFS management, this is the code of the powershell command to initialize the active document … Continue reading

Posted in 16868, 17894, 17895, 18440, 8606 | Leave a comment

WAQS: CustomAttribute

7 reasons to use WAQS WAQS documentation   Sometimes you want to use many contexts in a service method. Currently Func<IContext> is not supported in WAQS specifications.   Because WAQS generated types are partial, you can extend them. But I … Continue reading

Posted in 16868 | Leave a comment

WAQS: Math.Round

7 reasons to use WAQS WAQS documentation   I recently had a surprise with .NET: Math.Round(3.5) = 4 (expected) but Math.Round(2.5) = 2.   Indeed, by default, Math.Round uses MidpointRounding.ToEven option.   However, SQL Round uses the AwayFromZero mode. So … Continue reading

Posted in 16868, 18204, 7671, 7672 | Leave a comment

How to generate a property from an extension method using Roslyn

In WAQS, we have calculated properties that are generated from extension methods. In this post, we will see how we can generate a property from a method.   In my previous post, we saw a basic method to see if … Continue reading

Posted in 16402, 16868, 17895 | Leave a comment

Entity Data Model classes

Entity Framework provides some classes to describe the Entity Data Model. This can be very helpful in many cases and particularly for code generation.   Then, Entity Framework provides a ttinclude file that allows us to use this model instead … Continue reading

Posted in 10511, 16868, 17895, 7674, 7675 | Leave a comment

WAQS Querying: Math methods

7 reasons to use WAQS WAQS documentation   Math calculation with LINQ To Entities As with DateTime calculation, Math methods such as Abs, Ceiling, Floor, Pow, Round and Truncate are not supported by LINQ To Entities. With L2E queries, you … Continue reading

Posted in 12253, 16868, 7671 | Leave a comment

WAQS: ParameterMode

7 reasons to use WAQS WAQS documentation   Imagine the following code. string city = "Paris";var query = _context.Customers.Where(c => c.City == city);//…city = "London";foreach (var c in query){    //…} With this code, the foreach is on customers from London. … Continue reading

Posted in 12253, 16868 | Leave a comment

WAQS: conclusion

7 reasons to use WAQS WAQS documentation   If, numerous technologies or products were invented by research, WAQS is the result of a “real world” work. WAQS development was managed by needs of real applications today in production and each … Continue reading

Posted in 16868 | Leave a comment

WAQS Querying: support entities extension methods on LINQ queries

7 reasons to use WAQS WAQS documentation   We saw that LINQ To WAQS (L2WAQS) and LINQ To Entities + WAQS (L2EW) support calculated properties. L2WAQS and L2EW also support specification service / sub entities extension methods. So for example, … Continue reading

Posted in 12253, 16868 | Leave a comment