Monthly Archives: May 2014

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

Roslyn basis

Syntax Tree All the code could be represented as a very detailed tree. Using Roslyn, we can get this syntax tree from a document or we can use Parse methods of SyntaxFactory class. For example, you can use the following … Continue reading

Posted in 16402, 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

T4 Basis

T4 is a language tags that can be used in Visual Studio to generate file(s) (one file by default). T4 only has 4 tags: <#@ … #> <# … #> <#= … #> <#+ … #> Every thing that is … Continue reading

Posted in 10511, 17895 | 1 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

I will join Microsoft!

I remember, for my last high school year, the tradition of my school was to choose a leading figure and a song. For the personality, we chose Coluche and for the song “Au bout de mes rêves” of Jean-Jacques Goldman. … Continue reading

Posted in Uncategorized | 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

WAQS: Implement your own identity logic

7 reasons to use WAQS WAQS documentation   Imagine that you don’t have identity key column in your DB and you use your own way to define your DB sequence. So you need an identity logic on the client but … Continue reading

Posted in 16868, 7674, 7675 | Leave a comment