开发者

LINQ Data Context Not Showing Methods

开发者 https://www.devze.com 2022-12-29 16:55 出处:网络
For some reason my DataContext is not showing all the normal methods like SubmitChanges() etc in the intellisense.

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

精彩评论

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