I have upgraded my \"entityframework 4\" project to 5. I want to use lambda expression in Include (my motivation is to suplant string definitions) brackets.
At this
The lambda version of the Include is declared in the System.Data.Entity.DbExtensions class as an extension method.
System.Data.Entity.DbExtensions
In order to use it you need to add an using with the right namespace in your file the:
using
using System.Data.Entity; //... context.WarrantyContract.Include(w => w.Car);