Wednesday, June 30, 2010

Fluent query Syntax and query expression syntax

string names[]= {"name1",name2"};

Fluent Query syntax= query with predicates

ex:
IEnumerable query=names.Where(n=> n.Contains("a");

Query expression Syntax
IEnumerable query =from name in names
where name.Contains("a")
select name;

No comments: