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

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -