Метод | Описание | |
---|---|---|
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 |
public Release ( IUnitOfWork releasable ) : void | ||
releasable | IUnitOfWork | The releasable unit of work. |
Результат | void |
public UnitOfWorkFactory ( IRegistry registry, ISessionFactory factory ) : Arc.Infrastructure.Registry | ||
registry | IRegistry | The registry. |
factory | ISessionFactory | The NHibernate session factory. |
Результат | Arc.Infrastructure.Registry |