C# Class Arc.Infrastructure.Data.NHibernate.UnitOfWork

NHibernate unit of work adapter.
Inheritance: IUnitOfWork
ファイルを表示 Open project: marektihkan/Arc Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposeAll ) : void

Releases unmanaged and - optionally - managed resources

Method Details

BeginTransaction() public method

Begins the transaction.
public BeginTransaction ( ) : ITransaction
return ITransaction

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

TransactionalFlush() public method

Flushes changes in transaction.
public TransactionalFlush ( ) : void
return void

UnitOfWork() public method

Initializes a new instance of the UnitOfWork class.
public UnitOfWork ( ISession session, IUnitOfWorkFactory factory ) : System
session ISession The NHibernate session.
factory IUnitOfWorkFactory The factory.
return System