I'm creating a scaffold controller in MVC with Entity Framework. my model contains a navigation property and i expect to get eager loading for this property in the generated controller. and i get exactly what I expects, but there is an error to ambiguous call in
var courses = db.Courses.Include(c => c.Department);
the error details
The call is ambiguous between the following methods or properties: 'System.Data.Entity.QueryableExtensions.Include(System.Linq.IQueryable, System.Linq.Expressions.Expression>)' and 'System.Linq.EntityFrameworkQueryableExtensions.Include(System.Linq.IQueryable, System.Linq.Expressions.Expression>)
any help will be appreciated