开发者

Entity Framework 4.1 strongly-typed Include doesn't provide IntelliSense?

I've added: using System.Data.Entity; and now I don't get an error on compilation of this:

var k = db.Countries.Include(e => e.Cities);

but I still have to manually go into the database schema and check the current table correct name and copy-paste/type it in the code. There is no IntelliSense after I use the period:

var 开发者_如何转开发k = db.Countries.Include(e => e.

So, the purpose of all this is questionable since it doesn't really help at all. Typing manually the table name (entity set name) in quotation marks isn't any different than typing it in a lambda expression - except for it is shorter as a string.

Hints?


Seems like your problem will be resolved when you add

using System.Data.Entity;

to top of your page


Seems like the problem is in ReSharper 6 IntelliSense. After turning off ReSharper 6 IntelliSense, the original VS2010 IntelliSense works fine. The bug has been reported.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜