Interface IWacUnitOfWork
Inherited Members
System.IDisposable.Dispose()
Assembly: WaCore.Contracts.dll
Syntax
public interface IWacUnitOfWork : IDisposable
Methods
|
Improve this Doc
View Source
BeginTransaction()
Declaration
IWacTransaction BeginTransaction()
Returns
|
Improve this Doc
View Source
BeginTransaction(IsolationLevel)
Declaration
IWacTransaction BeginTransaction(IsolationLevel isolationLevel)
Parameters
Type |
Name |
Description |
System.Data.IsolationLevel |
isolationLevel |
|
Returns
|
Improve this Doc
View Source
BeginTransactionAsync(IsolationLevel, CancellationToken)
Declaration
Task<IWacTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type |
Name |
Description |
System.Data.IsolationLevel |
isolationLevel |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
BeginTransactionAsync(CancellationToken)
Declaration
Task<IWacTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
GetRepository<TRepository>()
Declaration
TRepository GetRepository<TRepository>()where TRepository : class
Returns
Type |
Description |
TRepository |
|
Type Parameters
Name |
Description |
TRepository |
|
|
Improve this Doc
View Source
SaveChanges()
Declaration
|
Improve this Doc
View Source
SaveChangesAsync(CancellationToken)
Declaration
Task SaveChangesAsync(CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|