My web application has many methods that open the context to the database. As an ORM quality, I use a linq2db. When I try to update some existing record in the database, it seems to me that a rollback occurs. But For some time in the database the correct version of the record is available with changes
Asked
Active
Viewed 140 times
0
-
It's probably a missing `commit` rather than an explicit rollback – May 12 '20 at 11:15
-
Isn't a commit executed automatically in the using construct? – Алексей Решарпов May 12 '20 at 12:26
-
no, transaction disposal performs rollback if transaction wasn't commited explicitly – May 13 '20 at 08:12
-
I began to use commit in every database action. But transactions keep rolling back – Алексей Решарпов May 14 '20 at 13:08