Table of Contents

Struct DbCommitState

Namespace
Rinku.Tracking.Committers
Assembly
Rinku.dll

Owns the connection and transaction used by one database commit.

public readonly struct DbCommitState : IDisposable
Implements
Inherited Members
Extension Methods

Constructors

DbCommitState(DbConnection, IsolationLevel?, int?)

Starts a database commit state.

public DbCommitState(DbConnection connection, IsolationLevel? isolationLevel = null, int? timeout = null)

Parameters

connection DbConnection
isolationLevel IsolationLevel?
timeout int?

Properties

Connection

Gets the commit connection.

public DbConnection Connection { get; }

Property Value

DbConnection

Timeout

Gets the command timeout.

public int? Timeout { get; }

Property Value

int?

Transaction

Gets the commit transaction.

public DbTransaction Transaction { get; }

Property Value

DbTransaction

Methods

Commit()

Commits the transaction.

public void Commit()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Rollback()

Rolls the transaction back.

public void Rollback()