FakeRelationalConnection FakeRelationalConnection Class

Syntax

Declaration

public class FakeRelationalConnection : RelationalConnection, IRelationalConnection, IRelationalTransactionManager, IDbContextTransactionManager, IDisposablePublic Class FakeRelationalConnection
    Inherits RelationalConnection
    Implements IRelationalConnection, IRelationalTransactionManager, IDbContextTransactionManager, IDisposable

Inheritance Hierarchy

Inherited Members

Logger,
Logger,
ConnectionString,
ConnectionString,
DbConnection,
DbConnection,
CurrentTransaction,
CurrentTransaction,
CommandTimeout,
CommandTimeout,
BeginTransaction(),
BeginTransaction(),
BeginTransactionAsync(CancellationToken),
BeginTransactionAsync(CancellationToken),
BeginTransaction(IsolationLevel),
BeginTransaction(IsolationLevel),
BeginTransactionAsync(IsolationLevel, CancellationToken),
BeginTransactionAsync(IsolationLevel, CancellationToken),
UseTransaction(DbTransaction),
UseTransaction(DbTransaction),
CommitTransaction(),
CommitTransaction(),
RollbackTransaction(),
RollbackTransaction(),
Open(),
Open(),
OpenAsync(CancellationToken),
OpenAsync(CancellationToken),
Close(),
Close(),
IsMultipleActiveResultSetsEnabled,
IsMultipleActiveResultSetsEnabled,
ActiveCursor,
ActiveCursor,
Dispose(),
Dispose(),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Properties summary

Methods summary

Constructors

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

    Parameters

Properties

  • DbConnections
    DbConnections
    public IReadOnlyList<FakeDbConnection> DbConnections { get; }Public ReadOnly Property DbConnections As IReadOnlyList(Of FakeDbConnection)

    Property Value

Methods

  • CreateDbConnection()
    CreateDbConnection()
    protected override DbConnection CreateDbConnection()Protected Overrides Function CreateDbConnection As DbConnection

    Returns

    • System.Data.Common.DbConnection
      System.Data.Common.DbConnection

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.Tests.dll