开发者

LINQ Data Context Not Showing Methods

For some reason my DataContext is not showing all the normal methods like SubmitChanges() etc in the intellisense.

It also won't compile if I type in db.SubmitChanges();

Any idea what I开发者_Python百科'm doing wrong? Normally I don't have this issue, I have several other projects that work fine...

Image of what I'm talking about:

LINQ Data Context Not Showing Methods


Your linq to sql dbml file might be corrupt or someone might have changed/deleted the code behind file. Try creating a new linq to sql dbml with a new context NeebitDBContext2. See if you get submitchanges.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜