C# Класс Arc.Infrastructure.Data.NHibernate.UnitOfWorkFactory

Unit of work factory.
Наследование: IUnitOfWorkFactory
Показать файл Открыть проект

Открытые методы

Метод Описание
Create ( ) : IUnitOfWork

Creates new unit of work or returns existing.

Release ( IUnitOfWork releasable ) : void

Releases the specified unit of work.

UnitOfWorkFactory ( IRegistry registry, ISessionFactory factory ) : Arc.Infrastructure.Registry

Initializes a new instance of the UnitOfWorkFactory class.

Приватные методы

Метод Описание
CreateAndRegisterNewSession ( ) : ISession
CreateAndRegisterNewUnitOfWork ( ) : IUnitOfWork

Описание методов

Create() публичный Метод

Creates new unit of work or returns existing.
public Create ( ) : IUnitOfWork
Результат IUnitOfWork

Release() публичный Метод

Releases the specified unit of work.
public Release ( IUnitOfWork releasable ) : void
releasable IUnitOfWork The releasable unit of work.
Результат void

UnitOfWorkFactory() публичный Метод

Initializes a new instance of the UnitOfWorkFactory class.
public UnitOfWorkFactory ( IRegistry registry, ISessionFactory factory ) : Arc.Infrastructure.Registry
registry IRegistry The registry.
factory ISessionFactory The NHibernate session factory.
Результат Arc.Infrastructure.Registry