FakeCommandExecutor FakeCommandExecutor Class

Definition

public class FakeCommandExecutor
Public Class FakeCommandExecutor
Inheritance
System.ObjectSystem.Object
FakeCommandExecutorFakeCommandExecutor

Constructors

FakeCommandExecutor(Func, Func, Func, Func>, Func>, Func>) FakeCommandExecutor(Func(Of FakeDbCommand, Int32), Func(Of FakeDbCommand, Object), Func(Of FakeDbCommand, CommandBehavior, DbDataReader), Func(Of FakeDbCommand, CancellationToken, Task(Of Int32)), Func(Of FakeDbCommand, CancellationToken, Task(Of Object)), Func(Of FakeDbCommand, CommandBehavior, CancellationToken, Task(Of DbDataReader)))

public FakeCommandExecutor(Func<FakeDbCommand, int> executeNonQuery = null, Func<FakeDbCommand, object> executeScalar = null, Func<FakeDbCommand, CommandBehavior, DbDataReader> executeReader = null, Func<FakeDbCommand, CancellationToken, Task<int>> executeNonQueryAsync = null, Func<FakeDbCommand, CancellationToken, Task<object>> executeScalarAsync = null, Func<FakeDbCommand, CommandBehavior, CancellationToken, Task<DbDataReader>> executeReaderAsync = null)
Public Sub New(executeNonQuery As Func(Of FakeDbCommand, Integer) = Nothing, executeScalar As Func(Of FakeDbCommand, Object) = Nothing, executeReader As Func(Of FakeDbCommand, CommandBehavior, DbDataReader) = Nothing, executeNonQueryAsync As Func(Of FakeDbCommand, CancellationToken, Task(Of Integer)) = Nothing, executeScalarAsync As Func(Of FakeDbCommand, CancellationToken, Task(Of Object)) = Nothing, executeReaderAsync As Func(Of FakeDbCommand, CommandBehavior, CancellationToken, Task(Of DbDataReader)) = Nothing)
Parameters
executeNonQuery
System.Func<FakeDbCommand, System.Int32> System.Func(Of FakeDbCommand, System.Int32)
executeScalar
System.Func<FakeDbCommand, System.Object> System.Func(Of FakeDbCommand, System.Object)
executeReader
System.Func<FakeDbCommand, System.Data.CommandBehavior, System.Data.Common.DbDataReader> System.Func(Of FakeDbCommand, System.Data.CommandBehavior, System.Data.Common.DbDataReader)
executeNonQueryAsync
System.Func<FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Int32>> System.Func(Of FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task(Of System.Int32))
executeScalarAsync
System.Func<FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Object>> System.Func(Of FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task(Of System.Object))
executeReaderAsync
System.Func<FakeDbCommand, System.Data.CommandBehavior, System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Data.Common.DbDataReader>> System.Func(Of FakeDbCommand, System.Data.CommandBehavior, System.Threading.CancellationToken, System.Threading.Tasks.Task(Of System.Data.Common.DbDataReader))

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

ExecuteNonQuery(FakeDbCommand) ExecuteNonQuery(FakeDbCommand)

public virtual int ExecuteNonQuery(FakeDbCommand command)
Public Overridable Function ExecuteNonQuery(command As FakeDbCommand) As Integer
Parameters
Returns
System.Int32 System.Int32

ExecuteNonQueryAsync(FakeDbCommand, CancellationToken) ExecuteNonQueryAsync(FakeDbCommand, CancellationToken)

public Task<int> ExecuteNonQueryAsync(FakeDbCommand command, CancellationToken cancellationToken)
Public Function ExecuteNonQueryAsync(command As FakeDbCommand, 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)

ExecuteReader(FakeDbCommand, CommandBehavior) ExecuteReader(FakeDbCommand, CommandBehavior)

public virtual DbDataReader ExecuteReader(FakeDbCommand command, CommandBehavior behavior)
Public Overridable Function ExecuteReader(command As FakeDbCommand, behavior As CommandBehavior) As DbDataReader
Parameters
behavior
System.Data.CommandBehavior System.Data.CommandBehavior
Returns
System.Data.Common.DbDataReader System.Data.Common.DbDataReader

ExecuteReaderAsync(FakeDbCommand, CommandBehavior, CancellationToken) ExecuteReaderAsync(FakeDbCommand, CommandBehavior, CancellationToken)

public Task<DbDataReader> ExecuteReaderAsync(FakeDbCommand command, CommandBehavior behavior, CancellationToken cancellationToken)
Public Function ExecuteReaderAsync(command As FakeDbCommand, 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)

ExecuteScalar(FakeDbCommand) ExecuteScalar(FakeDbCommand)

public virtual object ExecuteScalar(FakeDbCommand command)
Public Overridable Function ExecuteScalar(command As FakeDbCommand) As Object
Parameters
Returns
System.Object System.Object

ExecuteScalarAsync(FakeDbCommand, CancellationToken) ExecuteScalarAsync(FakeDbCommand, CancellationToken)

public Task<object> ExecuteScalarAsync(FakeDbCommand command, CancellationToken cancellationToken)
Public Function ExecuteScalarAsync(command As FakeDbCommand, 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)

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object