IUnitOfWork Interface
Assembly: PTS.DomainFramework.Domain.dll
Syntax
public interface IUnitOfWork : IServiceProviderAccessor
Methods
Repository(Type)
Declaration
IRepository Repository(Type entityType)
Parameters
| Type |
Name |
Description |
| System.Type |
entityType |
|
Returns
Repository<TEntity>()
Declaration
IRepository<TEntity> Repository<TEntity>()
where TEntity : class
Returns
Type Parameters
SaveChanges()
Declaration
Returns
| Type |
Description |
| System.Int32 |
|
SaveChanges(Object)
Declaration
int SaveChanges(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
Returns
| Type |
Description |
| System.Int32 |
|
SaveChangesAsync(Object, CancellationToken)
Declaration
Task<int> SaveChangesAsync(object sender, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Int32> |
|
SaveChangesAsync(CancellationToken)
Declaration
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Int32> |
|
Extension Methods