Datacontext submitchanges not updating database

Posted by / 19-Jul-2020 22:24

So E); // retrieve IDs in tables Engr and So E Engr = DB.

When the transaction around the submission is completed successfully, the Data Context accepts the changes to the objects by ignoring the change-tracking information. You can start with a new instance of the Data Context if the changes in memory are to be discarded.// ********************************* // People Updates // ********************************* // In Engr and So E Empl IDs = Input List. Get Engr By Ids(Empl IDs); // retrieve objects from Engr So E = DB.I have an XML string in memory, which I want to write to my database. Everything works fine up to that point, and all the values are correct when I debug. //pare down xml to contain locations only //using LINQ XElement result Data = XElement. Parse(xml Result); //xml Result is the string containing the XML var locations Xml Data = from lc in result Data.

datacontext submitchanges not updating database-86datacontext submitchanges not updating database-43datacontext submitchanges not updating database-59

All changes to the database are rolled back as if no submissions ever occurred.

One thought on “datacontext submitchanges not updating database”

  1. This marked the end of the programme's 16-year absence from episodic television following its cancellation in 1989, and was the first new televised Doctor Who story since the broadcast of the television movie starring Paul Mc Gann in 1996.