Class UnitOfWorkManager
Inheritance
object
UnitOfWorkManager
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Uow
Assembly: Volo.Abp.Uow.dll
Syntax
public class UnitOfWorkManager : IUnitOfWorkManager, ISingletonDependency
Constructors
UnitOfWorkManager(IAmbientUnitOfWork, IServiceScopeFactory)
Declaration
public UnitOfWorkManager(IAmbientUnitOfWork ambientUnitOfWork, IServiceScopeFactory serviceScopeFactory)
Parameters
Type |
Name |
Description |
IAmbientUnitOfWork |
ambientUnitOfWork |
|
Microsoft.Extensions.DependencyInjection.IServiceScopeFactory |
serviceScopeFactory |
|
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
Type |
Description |
System.Threading.AsyncLocal<T><bool> |
|
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