ef6 icon indicating copy to clipboard operation
ef6 copied to clipboard

Nested transactions

Open JudeAlquiza opened this issue 9 years ago • 2 comments

Hi,

Just want to ask if there is a feature that supports nested transactions with entity framework ? like the one here in this stackoverflow thread https://stackoverflow.com/questions/33728142/how-to-create-nested-transactions-in-entity-framework-using-transactionscope

Thanks! Jude Alquiza.

JudeAlquiza avatar Jul 24 '17 23:07 JudeAlquiza

@JudeAlquiza in general EF (and EF Core) relies on the transactional capabilities or the underlying database system (note that TransactionScope is currently not supported in EF Core but the plan is to bring this feature back now that it exists in .NET Core and that will be supported in various relational database providers).

Many commonly used databases do not have nested transaction capabilities.

Also, note having nested TransactionScope instances does not necessarily imply code will be executed in nested transactions, e.g. if the database does not support nested transactions then only one transaction will be created.

divega avatar Jul 31 '17 20:07 divega

Hi @divega thank you so much for the reply :) my apologies for replying late

JudeAlquiza avatar Jul 31 '17 21:07 JudeAlquiza