Interface IDbCommit<TContext>
Interface representing a class able to commit changes to the database.
Inherited Members
System.IDisposable.Dispose()
Namespace:Intranet.Common
Assembly:Intranet.Common.dll
Syntax
public interface IDbCommit<TContext> : IDisposable
Type Parameters
Name | Description |
---|---|
TContext |
Methods
| Improve this Doc View SourceCommit()
Commits all pending changes to the database.
Declaration
int Commit()
Returns
Type | Description |
---|---|
System.Int32 | Returns the number of changed records. |
CommitAsync(Nullable<CancellationToken>)
Commits all pending changes to the database asynchronously.
Declaration
Task<int> CommitAsync(CancellationToken? cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Threading.CancellationToken> | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | Returns the number of changed records asynchronously. |