FakeDbCommand FakeDbCommand Class

Definition

public class FakeDbCommand : DbCommand, IDbCommand, IDisposable
Public Class FakeDbCommand
    Inherits DbCommand
    Implements IDbCommand, IDisposable
Inheritance
System.ObjectSystem.Object
System.Data.Common.DbCommandSystem.Data.Common.DbCommand
FakeDbCommandFakeDbCommand
Implements
System.Data.IDbCommandSystem.Data.IDbCommand System.IDisposableSystem.IDisposable

Inherited Members

System.Data.Common.DbCommand

System.Data.Common.DbCommand.CreateParameter()System.Data.Common.DbCommand.CreateParameter()
System.Data.Common.DbCommand.System.Data.IDbCommand.CreateParameter()System.Data.Common.DbCommand.System.Data.IDbCommand.CreateParameter()
System.Data.Common.DbCommand.ExecuteReader()System.Data.Common.DbCommand.ExecuteReader()
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
System.Data.Common.DbCommand.ExecuteReader(System.Data.CommandBehavior)System.Data.Common.DbCommand.ExecuteReader(System.Data.CommandBehavior)
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior)System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior)
System.Data.Common.DbCommand.ExecuteNonQueryAsync()System.Data.Common.DbCommand.ExecuteNonQueryAsync()
System.Data.Common.DbCommand.ExecuteReaderAsync()System.Data.Common.DbCommand.ExecuteReaderAsync()
System.Data.Common.DbCommand.ExecuteReaderAsync(System.Threading.CancellationToken)System.Data.Common.DbCommand.ExecuteReaderAsync(System.Threading.CancellationToken)
System.Data.Common.DbCommand.ExecuteReaderAsync(System.Data.CommandBehavior)System.Data.Common.DbCommand.ExecuteReaderAsync(System.Data.CommandBehavior)
System.Data.Common.DbCommand.ExecuteReaderAsync(System.Data.CommandBehavior, System.Threading.CancellationToken)System.Data.Common.DbCommand.ExecuteReaderAsync(System.Data.CommandBehavior, System.Threading.CancellationToken)
System.Data.Common.DbCommand.ExecuteScalarAsync()System.Data.Common.DbCommand.ExecuteScalarAsync()
System.Data.Common.DbCommand.ConnectionSystem.Data.Common.DbCommand.Connection
System.Data.Common.DbCommand.System.Data.IDbCommand.ConnectionSystem.Data.Common.DbCommand.System.Data.IDbCommand.Connection
System.Data.Common.DbCommand.ParametersSystem.Data.Common.DbCommand.Parameters
System.Data.Common.DbCommand.System.Data.IDbCommand.ParametersSystem.Data.Common.DbCommand.System.Data.IDbCommand.Parameters
System.Data.Common.DbCommand.TransactionSystem.Data.Common.DbCommand.Transaction
System.Data.Common.DbCommand.System.Data.IDbCommand.TransactionSystem.Data.Common.DbCommand.System.Data.IDbCommand.Transaction

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 DefaultCommandTimeout
Public Shared DefaultCommandTimeout As Integer

Properties

CommandText CommandText

public override string CommandText { get; set; }
Public Overrides Property CommandText As String
Value
System.String System.String
Overrides
System.Data.Common.DbCommand.CommandTextSystem.Data.Common.DbCommand.CommandText

CommandTimeout CommandTimeout

public override int CommandTimeout { get; set; }
Public Overrides Property CommandTimeout As Integer
Value
System.Int32 System.Int32
Overrides
System.Data.Common.DbCommand.CommandTimeoutSystem.Data.Common.DbCommand.CommandTimeout

CommandType CommandType

public override CommandType CommandType { get; set; }
Public Overrides Property CommandType As CommandType
Value
System.Data.CommandType System.Data.CommandType
Overrides
System.Data.Common.DbCommand.CommandTypeSystem.Data.Common.DbCommand.CommandType

DbConnection DbConnection

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

DbParameterCollection DbParameterCollection

protected override DbParameterCollection DbParameterCollection { get; }
Protected Overrides ReadOnly Property DbParameterCollection As DbParameterCollection
Value
System.Data.Common.DbParameterCollection System.Data.Common.DbParameterCollection
Overrides
System.Data.Common.DbCommand.DbParameterCollectionSystem.Data.Common.DbCommand.DbParameterCollection

DbTransaction DbTransaction

protected override DbTransaction DbTransaction { get; set; }
Protected Overrides Property DbTransaction As DbTransaction
Value
System.Data.Common.DbTransaction System.Data.Common.DbTransaction
Overrides
System.Data.Common.DbCommand.DbTransactionSystem.Data.Common.DbCommand.DbTransaction

DesignTimeVisible DesignTimeVisible

public override bool DesignTimeVisible { get; set; }
Public Overrides Property DesignTimeVisible As Boolean
Value
System.Boolean System.Boolean
Overrides
System.Data.Common.DbCommand.DesignTimeVisibleSystem.Data.Common.DbCommand.DesignTimeVisible

DisposeCount DisposeCount

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

UpdatedRowSource UpdatedRowSource

public override UpdateRowSource UpdatedRowSource { get; set; }
Public Overrides Property UpdatedRowSource As UpdateRowSource
Value
System.Data.UpdateRowSource System.Data.UpdateRowSource
Overrides
System.Data.Common.DbCommand.UpdatedRowSourceSystem.Data.Common.DbCommand.UpdatedRowSource

Methods

Cancel() Cancel()

public override void Cancel()
Public Overrides Sub Cancel
Overrides
System.Data.Common.DbCommand.Cancel()System.Data.Common.DbCommand.Cancel()

CreateDbParameter() CreateDbParameter()

protected override DbParameter CreateDbParameter()
Protected Overrides Function CreateDbParameter As DbParameter
Returns
System.Data.Common.DbParameter System.Data.Common.DbParameter
Overrides
System.Data.Common.DbCommand.CreateDbParameter()System.Data.Common.DbCommand.CreateDbParameter()

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
Overrides
System.Data.Common.DbCommand.ExecuteDbDataReader(System.Data.CommandBehavior)System.Data.Common.DbCommand.ExecuteDbDataReader(System.Data.CommandBehavior)

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<System.Data.Common.DbDataReader> System.Threading.Tasks.Task(Of System.Data.Common.DbDataReader)
Overrides
System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(System.Data.CommandBehavior, System.Threading.CancellationToken)System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(System.Data.CommandBehavior, System.Threading.CancellationToken)

ExecuteNonQuery() ExecuteNonQuery()

public override int ExecuteNonQuery()
Public Overrides Function ExecuteNonQuery As Integer
Returns
System.Int32 System.Int32
Overrides
System.Data.Common.DbCommand.ExecuteNonQuery()System.Data.Common.DbCommand.ExecuteNonQuery()

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<System.Int32> System.Threading.Tasks.Task(Of System.Int32)
Overrides
System.Data.Common.DbCommand.ExecuteNonQueryAsync(System.Threading.CancellationToken)System.Data.Common.DbCommand.ExecuteNonQueryAsync(System.Threading.CancellationToken)

ExecuteScalar() ExecuteScalar()

public override object ExecuteScalar()
Public Overrides Function ExecuteScalar As Object
Returns
System.Object System.Object
Overrides
System.Data.Common.DbCommand.ExecuteScalar()System.Data.Common.DbCommand.ExecuteScalar()

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<System.Object> System.Threading.Tasks.Task(Of System.Object)
Overrides
System.Data.Common.DbCommand.ExecuteScalarAsync(System.Threading.CancellationToken)System.Data.Common.DbCommand.ExecuteScalarAsync(System.Threading.CancellationToken)

Prepare() Prepare()

public override void Prepare()
Public Overrides Sub Prepare
Overrides
System.Data.Common.DbCommand.Prepare()System.Data.Common.DbCommand.Prepare()