Showing posts with label Linq. Show all posts
Showing posts with label Linq. Show all posts

Monday, November 12, 2012

Linq to Lucene for Entity Framework

http://linqtolucene.codeplex.com/discussions/79132?ProjectName=linqtolucene

Sunday, November 11, 2012

review LINQ

sequence = list of object, normally, LINQ return IEnumerable<T> sequence

iQueryable work with SQL DB

Wednesday, October 17, 2012

LINQ group by with multiple columns using lambda


var qry = cust.GroupBy(cm => new { cm.Customer, cm.OrderDate }, 
             (key, group) => new { Key1 = key.Customer, Key2 = key.OrderDate, 
                                   Count = group.Count() });

Friday, November 12, 2010

Linq 多項 OrderBy...

Var movies = _db.Movies.Orderby(c => c.Category).ThenBy(n => n.Name)

不同sql...原來用ThenBy

還可以
var movies = from row in _db.Movies  orderby row.Category, row.Name select row;