FakeDbTransaction FakeDbTransaction Class

Definition

public class FakeDbTransaction : DbTransaction, IDbTransaction, IDisposable
Public Class FakeDbTransaction
    Inherits DbTransaction
    Implements IDbTransaction, IDisposable
Inheritance
System.ObjectSystem.Object
System.MarshalByRefObjectSystem.MarshalByRefObject
System.Data.Common.DbTransactionSystem.Data.Common.DbTransaction
FakeDbTransactionFakeDbTransaction
Implements
System.Data.IDbTransactionSystem.Data.IDbTransaction System.IDisposableSystem.IDisposable

Inherited Members

System.Data.Common.DbTransaction

System.Data.Common.DbTransaction.Dispose()System.Data.Common.DbTransaction.Dispose()
System.Data.Common.DbTransaction.ConnectionSystem.Data.Common.DbTransaction.Connection
System.Data.Common.DbTransaction.System.Data.IDbTransaction.ConnectionSystem.Data.Common.DbTransaction.System.Data.IDbTransaction.Connection

System.MarshalByRefObject

System.MarshalByRefObject.MemberwiseClone(System.Boolean)System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)System.MarshalByRefObject.CreateObjRef(System.Type)

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

FakeDbTransaction(FakeDbConnection, IsolationLevel) FakeDbTransaction(FakeDbConnection, IsolationLevel)

public FakeDbTransaction(FakeDbConnection connection, IsolationLevel isolationLevel = IsolationLevel.Unspecified)
Public Sub New(connection As FakeDbConnection, isolationLevel As IsolationLevel = IsolationLevel.Unspecified)
Parameters
isolationLevel
System.Data.IsolationLevel System.Data.IsolationLevel

Properties

CommitCount CommitCount

public int CommitCount { get; }
Public ReadOnly Property CommitCount As Integer
Value
System.Int32 System.Int32

DbConnection DbConnection

protected override DbConnection DbConnection { get; }
Protected Overrides ReadOnly Property DbConnection As DbConnection
Value
System.Data.Common.DbConnection System.Data.Common.DbConnection
Overrides
System.Data.Common.DbTransaction.DbConnectionSystem.Data.Common.DbTransaction.DbConnection

DisposeCount DisposeCount

public int DisposeCount { get; }
Public ReadOnly Property DisposeCount As Integer
Value
System.Int32 System.Int32

IsolationLevel IsolationLevel

public override IsolationLevel IsolationLevel { get; }
Public Overrides ReadOnly Property IsolationLevel As IsolationLevel
Value
System.Data.IsolationLevel System.Data.IsolationLevel
Overrides
System.Data.Common.DbTransaction.IsolationLevelSystem.Data.Common.DbTransaction.IsolationLevel

RollbackCount RollbackCount

public int RollbackCount { get; }
Public ReadOnly Property RollbackCount As Integer
Value
System.Int32 System.Int32

Methods

Commit() Commit()

public override void Commit()
Public Overrides Sub Commit
Overrides
System.Data.Common.DbTransaction.Commit()System.Data.Common.DbTransaction.Commit()

Dispose(Boolean) Dispose(Boolean)

protected override void Dispose(bool disposing)
Protected Overrides Sub Dispose(disposing As Boolean)
Parameters
disposing
System.Boolean System.Boolean
Overrides
System.Data.Common.DbTransaction.Dispose(System.Boolean)System.Data.Common.DbTransaction.Dispose(System.Boolean)

Rollback() Rollback()

public override void Rollback()
Public Overrides Sub Rollback
Overrides
System.Data.Common.DbTransaction.Rollback()System.Data.Common.DbTransaction.Rollback()