Class UnitOfWorkExtensions
Inheritance
System.Object
UnitOfWorkExtensions
Assembly: Volo.Abp.Uow.dll
Syntax
public static class UnitOfWorkExtensions : object
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 |
|
System.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 |
|
System.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 |
|
System.String |
key |
|
Func<System.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 |
|
System.String |
reservationName |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveItem(IUnitOfWork, String)
Declaration
public static void RemoveItem(this IUnitOfWork unitOfWork, string key)
Parameters
Type |
Name |
Description |
IUnitOfWork |
unitOfWork |
|
System.String |
key |
|