Show / Hide Table of Contents

Class UnitOfWorkManager

Inheritance
object
UnitOfWorkManager
Implements
IUnitOfWorkManager
ISingletonDependency
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
IServiceScopeFactory serviceScopeFactory

Properties

Current

Declaration
public IUnitOfWork? Current { get; }
Property Value
Type Description
IUnitOfWork

DisableObsoleteDbContextCreationWarning

Declaration
[Obsolete("This will be removed in next versions.")]
public static AsyncLocal<bool> DisableObsoleteDbContextCreationWarning { get; }
Property Value
Type Description
AsyncLocal<bool>

Methods

Begin(AbpUnitOfWorkOptions, bool)

Declaration
public IUnitOfWork Begin(AbpUnitOfWorkOptions options, bool requiresNew = false)
Parameters
Type Name Description
AbpUnitOfWorkOptions options
bool requiresNew
Returns
Type Description
IUnitOfWork

BeginReserved(string, AbpUnitOfWorkOptions)

Declaration
public void BeginReserved(string reservationName, AbpUnitOfWorkOptions options)
Parameters
Type Name Description
string reservationName
AbpUnitOfWorkOptions options

Reserve(string, bool)

Declaration
public IUnitOfWork Reserve(string reservationName, bool requiresNew = false)
Parameters
Type Name Description
string reservationName
bool requiresNew
Returns
Type Description
IUnitOfWork

TryBeginReserved(string, AbpUnitOfWorkOptions)

Declaration
public bool TryBeginReserved(string reservationName, AbpUnitOfWorkOptions options)
Parameters
Type Name Description
string reservationName
AbpUnitOfWorkOptions options
Returns
Type Description
bool

Implements

IUnitOfWorkManager
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
UnitOfWorkManagerExtensions.Begin(IUnitOfWorkManager, bool, bool, IsolationLevel?, int?)
UnitOfWorkManagerExtensions.BeginReserved(IUnitOfWorkManager, string)
UnitOfWorkManagerExtensions.TryBeginReserved(IUnitOfWorkManager, string)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform