Context submitchanges is not updating the database

My only outstanding question with this: If I’m calling ‘Submit Changes’ clearly I’m wanting to update some values and LINQ knows what classes (Tables) I’m working with at the time – So why is there no check to ensure that a PK is in place – Which should then result in an exception being thrown…answers on a comment please !Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

As host of the Polymorphic Podcast, Craig does what he loves most - make contributions to the community and draw the best out of industry luminaries. NET MVP, ASP Insider and guest speaker at various developer user groups and tradeshows.

Refreshing the page also solves the problem because the data is requeried from the database, updating the associated entity collections as well as the tables on the data context.

Original (left for context) What if you try assigning the associated entity instead of just its id?

A website that is not configured to operate in a disconnected state is unavailable in any form if an Internet connection is not available.

For instance, Figure 1 demonstrates the type of response you may encounter while trying to view working without an Internet connection.


Leave a Reply