FakeCommandExecutor FakeCommandExecutor Class

Syntax

Declaration

public class FakeCommandExecutorPublic Class FakeCommandExecutor

Inheritance Hierarchy

  • System.Object
    System.Object
  • FakeCommandExecutor
    FakeCommandExecutor

Inherited Members

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

Methods summary

Constructors

  • FakeCommandExecutor(Func<FakeDbCommand, Int32>, Func<FakeDbCommand, Object>, Func<FakeDbCommand, CommandBehavior, DbDataReader>, Func<FakeDbCommand, CancellationToken, Task<Int32>>, Func<FakeDbCommand, CancellationToken, Task<Object>>, Func<FakeDbCommand, CommandBehavior, CancellationToken, Task<DbDataReader>>)
    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<T, TResult><FakeDbCommand, System.Int32>
      System.Func<T, TResult>(Of FakeDbCommand, System.Int32)
    • executeScalar
      System.Func<T, TResult><FakeDbCommand, System.Object>
      System.Func<T, TResult>(Of FakeDbCommand, System.Object)
    • executeReader
      System.Func<T1, T2, TResult><FakeDbCommand, System.Data.CommandBehavior, System.Data.Common.DbDataReader>
      System.Func<T1, T2, TResult>(Of FakeDbCommand, System.Data.CommandBehavior, System.Data.Common.DbDataReader)
    • executeNonQueryAsync
      System.Func<T1, T2, TResult><FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult><System.Int32>>
      System.Func<T1, T2, TResult>(Of FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult>(Of System.Int32))
    • executeScalarAsync
      System.Func<T1, T2, TResult><FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult><System.Object>>
      System.Func<T1, T2, TResult>(Of FakeDbCommand, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult>(Of System.Object))
    • executeReaderAsync
      System.Func<T1, T2, T3, TResult><FakeDbCommand, System.Data.CommandBehavior, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult><System.Data.Common.DbDataReader>>
      System.Func<T1, T2, T3, TResult>(Of FakeDbCommand, System.Data.CommandBehavior, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult>(Of System.Data.Common.DbDataReader))

Methods

  • 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

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(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

    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

    • command
    • 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)
  • 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

    Returns

    • System.Threading.Tasks.Task<TResult><System.Object>
      System.Threading.Tasks.Task<TResult>(Of System.Object)

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.Tests.dll