Search code examples
c#asp.netlinqdatacontext

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'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:

alt text


Solution

  • 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.