Cannot call the include method in Entity framework 7

entity-framework-core include

Question

Using EF7 beta 5 and can not call the include method like:

var blogs=context.Blogs.Include(x=>x.Posts).ToList();

Did I miss something or is it maybe not jet implemented.

Popular Answer

Actually the answer is quite obvious :-) You need to add a using to the top of your source code file:

using Microsoft.Data.Entity


Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why