Show / Hide Table of Contents

Class UnitOfWorkExtensions

Inheritance
System.Object
UnitOfWorkExtensions
Namespace: Volo.Abp.Uow
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
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
System.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
System.String key
Func<System.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
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
Back to top Powered by Volosoft