FakeDbCommand FakeDbCommand Class

Syntax

Declaration

public class FakeDbCommand : DbCommand, IDbCommand, IDisposablePublic Class FakeDbCommand
    Inherits DbCommand
    Implements IDbCommand, IDisposable

Inheritance Hierarchy

  • System.Object
    System.Object
  • System.Data.Common.DbCommand
    System.Data.Common.DbCommand
  • FakeDbCommand
    FakeDbCommand

Inherited Members

CreateParameter(),
CreateParameter(),
IDbCommand.CreateParameter(),
System.Data.IDbCommand.CreateParameter(),
ExecuteReader(),
ExecuteReader(),
IDbCommand.ExecuteReader(),
System.Data.IDbCommand.ExecuteReader(),
ExecuteReader(CommandBehavior),
ExecuteReader(CommandBehavior),
IDbCommand.ExecuteReader(CommandBehavior),
System.Data.IDbCommand.ExecuteReader(CommandBehavior),
ExecuteNonQueryAsync(),
ExecuteNonQueryAsync(),
ExecuteReaderAsync(),
ExecuteReaderAsync(),
ExecuteReaderAsync(CancellationToken),
ExecuteReaderAsync(CancellationToken),
ExecuteReaderAsync(CommandBehavior),
ExecuteReaderAsync(CommandBehavior),
ExecuteReaderAsync(CommandBehavior, CancellationToken),
ExecuteReaderAsync(CommandBehavior, CancellationToken),
ExecuteScalarAsync(),
ExecuteScalarAsync(),
Connection,
Connection,
IDbCommand.Connection,
System.Data.IDbCommand.Connection,
Parameters,
Parameters,
IDbCommand.Parameters,
System.Data.IDbCommand.Parameters,
Transaction,
Transaction,
IDbCommand.Transaction
System.Data.IDbCommand.Transaction

Constructors summary

Fields summary

Properties summary

Methods summary

Constructors

  • FakeDbCommand()
    FakeDbCommand()
    public FakeDbCommand()Public Sub New
  • FakeDbCommand(FakeDbConnection, FakeCommandExecutor)
    FakeDbCommand(FakeDbConnection, FakeCommandExecutor)
    public FakeDbCommand(FakeDbConnection connection, FakeCommandExecutor commandExecutor)Public Sub New(connection As FakeDbConnection, commandExecutor As FakeCommandExecutor)

    Parameters

Fields

  • DefaultCommandTimeout
    DefaultCommandTimeout
    public static int DefaultCommandTimeoutPublic Shared DefaultCommandTimeout As Integer

Properties

  • CommandText
    CommandText
    public override string CommandText { get; set; }Public Overrides Property CommandText As String

    Property Value

    • System.String
      System.String
  • CommandTimeout
    CommandTimeout
    public override int CommandTimeout { get; set; }Public Overrides Property CommandTimeout As Integer

    Property Value

    • System.Int32
      System.Int32
  • CommandType
    CommandType
    public override CommandType CommandType { get; set; }Public Overrides Property CommandType As CommandType

    Property Value

    • System.Data.CommandType
      System.Data.CommandType
  • DbConnection
    DbConnection
    protected override DbConnection DbConnection { get; set; }Protected Overrides Property DbConnection As DbConnection

    Property Value

    • System.Data.Common.DbConnection
      System.Data.Common.DbConnection
  • DbParameterCollection
    DbParameterCollection
    protected override DbParameterCollection DbParameterCollection { get; }Protected Overrides ReadOnly Property DbParameterCollection As DbParameterCollection

    Property Value

    • System.Data.Common.DbParameterCollection
      System.Data.Common.DbParameterCollection
  • DbTransaction
    DbTransaction
    protected override DbTransaction DbTransaction { get; set; }Protected Overrides Property DbTransaction As DbTransaction

    Property Value

    • System.Data.Common.DbTransaction
      System.Data.Common.DbTransaction
  • DesignTimeVisible
    DesignTimeVisible
    public override bool DesignTimeVisible { get; set; }Public Overrides Property DesignTimeVisible As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • DisposeCount
    DisposeCount
    public int DisposeCount { get; }Public ReadOnly Property DisposeCount As Integer

    Property Value

    • System.Int32
      System.Int32
  • UpdatedRowSource
    UpdatedRowSource
    public override UpdateRowSource UpdatedRowSource { get; set; }Public Overrides Property UpdatedRowSource As UpdateRowSource

    Property Value

    • System.Data.UpdateRowSource
      System.Data.UpdateRowSource

Methods

  • Cancel()
    Cancel()
    public override void Cancel()Public Overrides Sub Cancel
  • CreateDbParameter()
    CreateDbParameter()
    protected override DbParameter CreateDbParameter()Protected Overrides Function CreateDbParameter As DbParameter

    Returns

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

    Parameters

    • disposing
      System.Boolean
      System.Boolean
  • ExecuteDbDataReader(CommandBehavior)
    ExecuteDbDataReader(CommandBehavior)
    protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)Protected Overrides Function ExecuteDbDataReader(behavior As CommandBehavior) As DbDataReader

    Parameters

    • behavior
      System.Data.CommandBehavior
      System.Data.CommandBehavior

    Returns

    • System.Data.Common.DbDataReader
      System.Data.Common.DbDataReader
  • ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken)
    ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken)
    protected override Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)Protected Overrides Function ExecuteDbDataReaderAsync(behavior As CommandBehavior, cancellationToken As CancellationToken) As Task(Of DbDataReader)

    Parameters

    • behavior
      System.Data.CommandBehavior
      System.Data.CommandBehavior
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Data.Common.DbDataReader>
      System.Threading.Tasks.Task<TResult>(Of System.Data.Common.DbDataReader)
  • ExecuteNonQuery()
    ExecuteNonQuery()
    public override int ExecuteNonQuery()Public Overrides Function ExecuteNonQuery As Integer

    Returns

    • System.Int32
      System.Int32
  • ExecuteNonQueryAsync(CancellationToken)
    ExecuteNonQueryAsync(CancellationToken)
    public override Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken)Public Overrides Function ExecuteNonQueryAsync(cancellationToken As CancellationToken) As Task(Of Integer)

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(Of System.Int32)
  • ExecuteScalar()
    ExecuteScalar()
    public override object ExecuteScalar()Public Overrides Function ExecuteScalar As Object

    Returns

    • System.Object
      System.Object
  • ExecuteScalarAsync(CancellationToken)
    ExecuteScalarAsync(CancellationToken)
    public override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken)Public Overrides Function ExecuteScalarAsync(cancellationToken As CancellationToken) As Task(Of Object)

    Parameters

    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Object>
      System.Threading.Tasks.Task<TResult>(Of System.Object)
  • Prepare()
    Prepare()
    public override void Prepare()Public Overrides Sub Prepare

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.Tests.dll