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

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()

Connection Connection

Inherited from System.Data.Common.DbTransaction

CreateObjRef(Type) CreateObjRef(Type)

Inherited from System.MarshalByRefObject

Dispose() Dispose()

Inherited from System.Data.Common.DbTransaction

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)

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetLifetimeService() GetLifetimeService()

Inherited from System.MarshalByRefObject

GetType() GetType()

Inherited from System.Object

IDbTransaction.Connection System.Data.IDbTransaction.Connection

Inherited from System.Data.Common.DbTransaction

InitializeLifetimeService() InitializeLifetimeService()

Inherited from System.MarshalByRefObject

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Inherited from System.MarshalByRefObject

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

Rollback() Rollback()

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

ToString() ToString()

Inherited from System.Object