Show / Hide Table of Contents

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 Source

Commit()

Commits all pending changes to the database.

Declaration
int Commit()
Returns
Type Description
System.Int32

Returns the number of changed records.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX