Interface IUnitOfWork<TAuthenticationToken>
Assembly: Cqrs.dll
Syntax
public interface IUnitOfWork<TAuthenticationToken>
Type Parameters
Name |
Description |
TAuthenticationToken |
|
Methods
Add<TAggregateRoot>(TAggregateRoot)
Declaration
void Add<TAggregateRoot>(TAggregateRoot aggregate)where TAggregateRoot : IAggregateRoot<TAuthenticationToken>
Parameters
Type |
Name |
Description |
TAggregateRoot |
aggregate |
|
Type Parameters
Name |
Description |
TAggregateRoot |
|
Commit()
Declaration
Get<TAggregateRoot>(Guid, Nullable<Int32>)
Declaration
TAggregateRoot Get<TAggregateRoot>(Guid id, int ? expectedVersion = null)where TAggregateRoot : IAggregateRoot<TAuthenticationToken>
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Nullable<System.Int32> |
expectedVersion |
|
Returns
Type |
Description |
TAggregateRoot |
|
Type Parameters
Name |
Description |
TAggregateRoot |
|