Datacontext submitchanges not updating database college dating girl
the method below updates database called updatehold(). ran debug verify hold object "thishold" updating values being changed in form.when view values of db object after submit happens, see unchanged, same in physical database. Once I added a new column and made a primary key than everything worked fine. This was my test table to i didnt have primary key.You apply any number of updates, inserts or deletes.That are then held as a unit of work, then once you've finished your changes you simply commit them to the database as a single action or roll all of the changes back, maintaining the integrity of your database.You can therefore try to correct the problem and call Submit Changes again, as in the code example that follows. When the transaction around the submission is completed successfully, the Data Context accepts the changes to the objects by ignoring the change-tracking information.