I\'m doing a lambda select on EF4.1, including another related DBSet in my current statement.
return dbEntity.GameTypes.Include(a => a.Draws)
From MSDN for DbExtensions.Include().
The path expression must be composed of simple property access expressions together with calls to Select in order to compose additional includes after including a collection property.
So I don't think using Where()
is allowed. I'm not sure if you can do any filtering when it comes to Include()
.