Sknecht
Sknecht

Reputation: 1074

Cannot call the include method in Entity framework 7

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.

Upvotes: 2

Views: 1714

Answers (1)

Alek
Alek

Reputation: 141

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

using Microsoft.Data.Entity

Upvotes: 4

Related Questions