Show / Hide Table of Contents

Class UnitOfWorkExtensions

Inheritance
object
UnitOfWorkExtensions
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 static class UnitOfWorkExtensions

Methods

AddItem<TValue>(IUnitOfWork, string, TValue)

Declaration
public static void AddItem<TValue>(this IUnitOfWork unitOfWork, string key, TValue value) where TValue : class
Parameters
Type Name Description
IUnitOfWork unitOfWork
string key
TValue value
Type Parameters
Name Description
TValue

GetItemOrDefault<TValue>(IUnitOfWork, string)

Declaration
public static TValue GetItemOrDefault<TValue>(this IUnitOfWork unitOfWork, string key) where TValue : class
Parameters
Type Name Description
IUnitOfWork unitOfWork
string key
Returns
Type Description
TValue
Type Parameters
Name Description
TValue

GetOrAddItem<TValue>(IUnitOfWork, string, Func<string, TValue>)

Declaration
public static TValue GetOrAddItem<TValue>(this IUnitOfWork unitOfWork, string key, Func<string, TValue> factory) where TValue : class
Parameters
Type Name Description
IUnitOfWork unitOfWork
string key
Func<string, TValue> factory
Returns
Type Description
TValue
Type Parameters
Name Description
TValue

IsReservedFor(IUnitOfWork, string)

Declaration
public static bool IsReservedFor(this IUnitOfWork unitOfWork, string reservationName)
Parameters
Type Name Description
IUnitOfWork unitOfWork
string reservationName
Returns
Type Description
bool

RemoveItem(IUnitOfWork, string)

Declaration
public static void RemoveItem(this IUnitOfWork unitOfWork, string key)
Parameters
Type Name Description
IUnitOfWork unitOfWork
string key
In this article
Back to top Powered by ABP.IO Platform