FakeRelationalConnection FakeRelationalConnection Class

Definition

public class FakeRelationalConnection : RelationalConnection, IRelationalConnection, IRelationalTransactionManager, IDbContextTransactionManager, IDisposable
Public Class FakeRelationalConnection
    Inherits RelationalConnection
    Implements IRelationalConnection, IRelationalTransactionManager, IDbContextTransactionManager, IDisposable
Inheritance
System.ObjectSystem.Object
FakeRelationalConnectionFakeRelationalConnection
Implements

Constructors

FakeRelationalConnection(IDbContextOptions) FakeRelationalConnection(IDbContextOptions)

public FakeRelationalConnection(IDbContextOptions options)
Public Sub New(options As IDbContextOptions)
Parameters

Properties

ActiveCursor ActiveCursor

Gets or sets the active cursor.

(Inherited from RelationalConnection)

CommandTimeout CommandTimeout

Gets the timeout for executing a command against the database.

(Inherited from RelationalConnection)

ConnectionString ConnectionString

Gets the connection string for the database.

(Inherited from RelationalConnection)

CurrentTransaction CurrentTransaction

Gets the current transaction.

(Inherited from RelationalConnection)

DbConnection DbConnection

Gets the underlying System.Data.Common.DbConnection used to connect to the database.

(Inherited from RelationalConnection)

DbConnections DbConnections

public IReadOnlyList<FakeDbConnection> DbConnections { get; }
Public ReadOnly Property DbConnections As IReadOnlyList(Of FakeDbConnection)
Value
System.Collections.Generic.IReadOnlyList<FakeDbConnection> System.Collections.Generic.IReadOnlyList(Of FakeDbConnection)

IsMultipleActiveResultSetsEnabled IsMultipleActiveResultSetsEnabled

Gets a value indicating whether the multiple active result sets feature is enabled.

(Inherited from RelationalConnection)

Logger Logger

Gets the logger to write to.

(Inherited from RelationalConnection)

Methods

BeginTransaction() BeginTransaction()

Begins a new transaction.

(Inherited from RelationalConnection)

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

Begins a new transaction.

(Inherited from RelationalConnection)

BeginTransactionAsync(CancellationToken) BeginTransactionAsync(CancellationToken)

Asynchronously begins a new transaction.

(Inherited from RelationalConnection)

BeginTransactionAsync(IsolationLevel, CancellationToken) BeginTransactionAsync(IsolationLevel, CancellationToken)

Asynchronously begins a new transaction.

(Inherited from RelationalConnection)

Close() Close()

Closes the connection to the database.

(Inherited from RelationalConnection)

CommitTransaction() CommitTransaction()

Commits all changes made to the database in the current transaction.

(Inherited from RelationalConnection)

CreateDbConnection() CreateDbConnection()

protected override DbConnection CreateDbConnection()
Protected Overrides Function CreateDbConnection As DbConnection
Returns
System.Data.Common.DbConnection System.Data.Common.DbConnection
Overrides

Dispose() Dispose()

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

(Inherited from RelationalConnection)

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Open() Open()

Opens the connection to the database.

(Inherited from RelationalConnection)

OpenAsync(CancellationToken) OpenAsync(CancellationToken)

Asynchronously opens the connection to the database.

(Inherited from RelationalConnection)

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

Inherited from System.Object

RollbackTransaction() RollbackTransaction()

Discards all changes made to the database in the current transaction.

(Inherited from RelationalConnection)

ToString() ToString()

Inherited from System.Object

UseTransaction(DbTransaction) UseTransaction(DbTransaction)

Specifies an existing System.Data.Common.DbTransaction to be used for database operations.

(Inherited from RelationalConnection)