Linq

Sunday, September 22, 2013

Linq enables SQL type queries in the code

Linq by Examples, LINQ everything

Check this out.

Data Sources:

  1. LINQ to SQL
  2. LINQ to Entities
  3. LINQ to Objects
  4. Linq to XML
  5. LINQ to many other data sources
  6. You can write a LINQ provider yourself

Query Syntax


Method Syntax


Multi Line Lambda expression


Chaining


Sorting


Reverse Sorting



Sorting With Null Values

Create Sequence of Numbers

Unit Test



Generate Sequence Of Random Letters

Default Success Warning Important Info Inverse
B S W I ? O