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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -