Skip to content

EFCore Nested Transaction adds nested transaction support to Entity Framework Core for SQL Server.

Notifications You must be signed in to change notification settings

cyril1018/efcore-nested-transaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

EFCore Nested Transaction

EFCore Nested Transaction enables nested transactions in Entity Framework Core. With this class, you can call "BEGIN TRANSACTION" and "COMMIT TRANSACTION" commands in a nested manner within EFCore. The actual "BEGIN TRANSACTION" and "COMMIT TRANSACTION" commands are only sent to the database server in the outermost calls. This implementation currently supports Microsoft SQL Server only.

How to Use

To use EFCore Nested Transaction, you need to replace the default IDbContextTransactionManager in your Startup.cs file.

services.AddDbContext <AppDbContext> (options =>
{
    options.ReplaceService <IDbContextTransactionManager, NestedTransactionManager>();
});

About

EFCore Nested Transaction adds nested transaction support to Entity Framework Core for SQL Server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages