An open API service indexing awesome lists of open source software.

https://github.com/cyril1018/efcore-nested-transaction

EFCore Nested Transaction adds nested transaction support to Entity Framework Core for SQL Server.
https://github.com/cyril1018/efcore-nested-transaction

efcore nested-transactions sqlserver

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.
```csharp
services.AddDbContext (options =>
{
options.ReplaceService ();
});
```