Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
CreateAndRegisterNewSession ( ) : ISession | ||
CreateAndRegisterNewUnitOfWork ( ) : IUnitOfWork |
public Release ( IUnitOfWork releasable ) : void | ||
releasable | IUnitOfWork | The releasable unit of work. |
return | void |
public UnitOfWorkFactory ( IRegistry registry, ISessionFactory factory ) : Arc.Infrastructure.Registry | ||
registry | IRegistry | The registry. |
factory | ISessionFactory | The NHibernate session factory. |
return | Arc.Infrastructure.Registry |