entity framework - `DbContext.Database.BeginTransaction` can't be nested? -
i'm trying ef6-way of using transactions , noticed following code
using (db.database.begintransaction()) { // using (db.database.begintransaction()) { /// } }
throws exception on second begin transaction telling me that
the connection in transaction , cannot participate in transaction. entityclient not support parallel transactions.
not want parallel transaction, whatever mean on 1 connection. wanted nested one.
so indeed not supported on what's going on?
prior ef6 recommended way of providing larger scope transactions use transactionscope object, still works, seems deprecated (see here - bottom of page)
Comments
Post a Comment