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
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 Parameters
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 |
|
System.Func<T, TResult><string, TValue> |
factory |
|
Returns
Type Parameters
IsReservedFor(IUnitOfWork, string)
Declaration
public static bool IsReservedFor(this IUnitOfWork unitOfWork, string reservationName)
Parameters
Type |
Name |
Description |
IUnitOfWork |
unitOfWork |
|
string |
reservationName |
|
Returns
RemoveItem(IUnitOfWork, string)
Declaration
public static void RemoveItem(this IUnitOfWork unitOfWork, string key)
Parameters
Type |
Name |
Description |
IUnitOfWork |
unitOfWork |
|
string |
key |
|