LINQ

How to add attributes to classes generated by LINQ2SQL or Entity Framework?

INTRODUCTION In these days Microsoft developers tend to compose their Data Access Layers using LINQ2SQL or Entity Framework most of the times. The good ol’ ADO.NET was terrific in the past, but its days of glory are clearly over. Both of these frameworks offer great functionality and both of them can save up a lot of time. Assuming that you have a complete database prepared, generating business classes for that is just a matter of few clicks. And those classes are generated in a shipshape fashion...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

GroupJoin method tutorial

INTRODUCTION Some time ago I published an article describing in very little details GroupBy method that comes with LINQ framework. Now I want to show you on an example step by step how to use another LINQ`s method – GroupJoin. GroupJoin method is somewhat similar to the previous one. The only difference is that it additionally applies inner join operation on given collections. This operation is applied before grouping. If you would like to swap those operation`s order then use GroupBy method followed...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

LINQ: GroupBy method tutorial

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 false 21 false false false PL X-NONE X-NONE /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:238;...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati