Class EntityFrameworkCoreTransactionFactory
- Namespace
- JsonApiDotNetCore.AtomicOperations
- Assembly
- JsonApiDotNetCore.dll
Provides transaction support for atomic:operation requests using Entity Framework Core.
public sealed class EntityFrameworkCoreTransactionFactory : IOperationsTransactionFactory
- Inheritance
-
EntityFrameworkCoreTransactionFactory
- Implements
- Inherited Members
Constructors
EntityFrameworkCoreTransactionFactory(IDbContextResolver, IJsonApiOptions)
public EntityFrameworkCoreTransactionFactory(IDbContextResolver dbContextResolver, IJsonApiOptions options)
Parameters
dbContextResolver
IDbContextResolveroptions
IJsonApiOptions
Methods
BeginTransactionAsync(CancellationToken)
Starts a new transaction.
public Task<IOperationsTransaction> BeginTransactionAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken