.net MVC 3

Caporegime
Joined
18 Oct 2002
Posts
29,491
Location
Back in East London
Please don't use L2S - it is unfinished and very difficult to work with in some scenarios, and once implemented, very difficult to untangle! :)

Example of why it's hard to use:

Code:
return dataContext.Objects.Where(each => each.LinkedObjects.Any(oo => oo.SomeProperty == "foo"));

The above query will not work in L2S! the LinkedObjects property will be an EntitySet which does not implement IQueryable, only IEnumerable, so it cannot map the Any() function to SQL. :)
 
Last edited:

Izi

Izi

Soldato
Joined
9 Dec 2007
Posts
2,718
Even EF is still unfinished. There are still bugs in the framework.

I would use fluent nhibernate if I had the choice now.
 
Back
Top Bottom