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.

1
2
9/9/2015 9:37:23 AM

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
4
9/9/2015 2:06:28 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow