Show / Hide Table of Contents

Class DbSession<TConnection, TCommand, TReader>.Transaction

Represents a database transaction.

Inheritance
System.Object
DbSession<TConnection, TCommand, TReader>.Transaction
Implements
ITransaction
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data.Primitives
Assembly: DevZest.Data.dll
Syntax
protected abstract class Transaction : ITransaction, IDisposable

Properties

Name Description
IsDisposed

Gets a value indicates whether this transaction is diposed.

Level

Gets the nested level of the transaction.

Name

Gets the name of the transaction.

Methods

Name Description
CommitAsync(CancellationToken)

Commits the transaction.

Dispose()

Releases resources owned by this transaction.

ExecuteNonQueryAsync(TCommand, CancellationToken)

Executes the command in transaction and returns the number of rows affected.

ExecuteReaderAsync(Model, TCommand, CancellationToken)

Executes the command in transaction and returns a database reader.

GetDbSession()

Gets the database session which owns this transaction.

PerformCommitAsync(CancellationToken)

Performs commit transaction operation.

PerformExecuteNonQueryAsync(TCommand, CancellationToken)

Performs the operation to execute the command and returns the number of rows affected.

PerformExecuteReaderAsync(Model, TCommand, CancellationToken)

Performs the operation to execute the command and returns a database reader.

PerformRollbackAsync(CancellationToken)

Performs rollback transaction operation.

RollbackAsync(CancellationToken)

Rollback the transaction

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest