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

NHibernate unit of work adapter.
Inheritance: IUnitOfWork
Afficher le fichier Open project: marektihkan/Arc Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposeAll ) : void

Releases unmanaged and - optionally - managed resources

Method Details

BeginTransaction() public méthode

Begins the transaction.
public BeginTransaction ( ) : ITransaction
Résultat ITransaction

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

TransactionalFlush() public méthode

Flushes changes in transaction.
public TransactionalFlush ( ) : void
Résultat void

UnitOfWork() public méthode

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