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

NHibernate unit of work adapter.
Наследование: IUnitOfWork
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BeginTransaction ( ) : ITransaction

Begins the transaction.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

TransactionalFlush ( ) : void

Flushes changes in transaction.

UnitOfWork ( ISession session, IUnitOfWorkFactory factory ) : System

Initializes a new instance of the UnitOfWork class.

Защищенные методы

Метод Описание
Dispose ( bool disposeAll ) : void

Releases unmanaged and - optionally - managed resources

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

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

Begins the transaction.
public BeginTransaction ( ) : ITransaction
Результат ITransaction

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposeAll ) : void
disposeAll bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Flushes changes in transaction.
public TransactionalFlush ( ) : void
Результат void

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

Initializes a new instance of the UnitOfWork class.
public UnitOfWork ( ISession session, IUnitOfWorkFactory factory ) : System
session ISession The NHibernate session.
factory IUnitOfWorkFactory The factory.
Результат System