Class UnitOfWorkManager
Inheritance
UnitOfWorkManager
Assembly: Volo.Abp.Uow.dll
Syntax
public class UnitOfWorkManager : IUnitOfWorkManager, ISingletonDependency
Constructors
UnitOfWorkManager(IAmbientUnitOfWork, IServiceScopeFactory)
Declaration
public UnitOfWorkManager(IAmbientUnitOfWork ambientUnitOfWork, IServiceScopeFactory serviceScopeFactory)
Parameters
Properties
Current
Declaration
public IUnitOfWork? Current { get; }
Property Value
DisableObsoleteDbContextCreationWarning
Declaration
[Obsolete("This will be removed in next versions.")]
public static AsyncLocal<bool> DisableObsoleteDbContextCreationWarning { get; }
Property Value
Methods
Begin(AbpUnitOfWorkOptions, bool)
Declaration
public IUnitOfWork Begin(AbpUnitOfWorkOptions options, bool requiresNew = false)
Parameters
Returns
BeginReserved(string, AbpUnitOfWorkOptions)
Declaration
public void BeginReserved(string reservationName, AbpUnitOfWorkOptions options)
Parameters
Reserve(string, bool)
Declaration
public IUnitOfWork Reserve(string reservationName, bool requiresNew = false)
Parameters
Type |
Name |
Description |
string |
reservationName |
|
bool |
requiresNew |
|
Returns
TryBeginReserved(string, AbpUnitOfWorkOptions)
Declaration
public bool TryBeginReserved(string reservationName, AbpUnitOfWorkOptions options)
Parameters
Returns
Implements
Extension Methods