I've seen many articles about how to overcome this matter, all related to CTP4, Or adding my own extension methods.
Is there an "official" EF4 included way to use lambda expressions inside include (for both first level relations and also 2nd and more level) or is it eventually was not included in the RTM ?
It there is one - I would be glad to learn how to do it, as using lambda expression in my code now (with #system.data.entity #system.data.linq) still gives me:
Cannot convert lambda expression to type 'string' because it is not a delegate type
on:
var customers = from c in
context.Customers.Include(c=>c.Phone)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…