RelationalCommand RelationalCommand Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public class RelationalCommand : IRelationalCommandPublic Class RelationalCommand
    Implements IRelationalCommand

Inheritance Hierarchy

  • System.Object
    System.Object
  • RelationalCommand
    RelationalCommand

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

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Properties summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Methods summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Constructors

  • RelationalCommand(ISensitiveDataLogger, DiagnosticSource, String, IReadOnlyList<IRelationalParameter>)
    RelationalCommand(ISensitiveDataLogger, DiagnosticSource, String, IReadOnlyList(Of IRelationalParameter))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public RelationalCommand(ISensitiveDataLogger logger, DiagnosticSource diagnosticSource, string commandText, IReadOnlyList<IRelationalParameter> parameters)Public Sub New(logger As ISensitiveDataLogger, diagnosticSource As DiagnosticSource, commandText As String, parameters As IReadOnlyList(Of IRelationalParameter))

    Parameters

Properties

  • CommandText
    CommandText

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual string CommandText { get; }Public Overridable ReadOnly Property CommandText As String

    Property Value

    • System.String
      System.String
  • DiagnosticSource
    DiagnosticSource

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    protected virtual DiagnosticSource DiagnosticSource { get; }Protected Overridable ReadOnly Property DiagnosticSource As DiagnosticSource

    Property Value

    • DiagnosticSource
      DiagnosticSource
  • Logger
    Logger

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    protected virtual ISensitiveDataLogger Logger { get; }Protected Overridable ReadOnly Property Logger As ISensitiveDataLogger

    Property Value

  • Parameters
    Parameters

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual IReadOnlyList<IRelationalParameter> Parameters { get; }Public Overridable ReadOnly Property Parameters As IReadOnlyList(Of IRelationalParameter)

    Property Value

Methods

  • Execute(IRelationalConnection, String, IReadOnlyDictionary<String, Object>, Boolean)
    Execute(IRelationalConnection, String, IReadOnlyDictionary(Of String, Object), Boolean)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    protected virtual object Execute(IRelationalConnection connection, string executeMethod, IReadOnlyDictionary<string, object> parameterValues, bool closeConnection = true)Protected Overridable Function Execute(connection As IRelationalConnection, executeMethod As String, parameterValues As IReadOnlyDictionary(Of String, Object), closeConnection As Boolean = True) As Object

    Parameters

    • connection
    • executeMethod
      System.String
      System.String
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
    • closeConnection
      System.Boolean
      System.Boolean

    Returns

    • System.Object
      System.Object
  • ExecuteAsync(IRelationalConnection, String, IReadOnlyDictionary<String, Object>, Boolean, CancellationToken)
    ExecuteAsync(IRelationalConnection, String, IReadOnlyDictionary(Of String, Object), Boolean, CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    protected virtual Task<object> ExecuteAsync(IRelationalConnection connection, string executeMethod, IReadOnlyDictionary<string, object> parameterValues, bool closeConnection = true, CancellationToken cancellationToken = null)Protected Overridable Function ExecuteAsync(connection As IRelationalConnection, executeMethod As String, parameterValues As IReadOnlyDictionary(Of String, Object), closeConnection As Boolean = True, cancellationToken As CancellationToken = Nothing) As Task(Of Object)

    Parameters

    • connection
    • executeMethod
      System.String
      System.String
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
    • closeConnection
      System.Boolean
      System.Boolean
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Object>
      System.Threading.Tasks.Task<TResult>(Of System.Object)
  • ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String, Object>)
    ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary(Of String, Object))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual int ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues)Public Overridable Function ExecuteNonQuery(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object)) As Integer

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)

    Returns

    • System.Int32
      System.Int32
  • ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary<String, Object>, CancellationToken)
    ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary(Of String, Object), CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual Task<int> ExecuteNonQueryAsync(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues, CancellationToken cancellationToken = null)Public Overridable Function ExecuteNonQueryAsync(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(Of System.Int32)
  • ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String, Object>)
    ExecuteReader(IRelationalConnection, IReadOnlyDictionary(Of String, Object))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual RelationalDataReader ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues)Public Overridable Function ExecuteReader(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object)) As RelationalDataReader

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)

    Returns

  • ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary<String, Object>, CancellationToken)
    ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary(Of String, Object), CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual Task<RelationalDataReader> ExecuteReaderAsync(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues, CancellationToken cancellationToken = null)Public Overridable Function ExecuteReaderAsync(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), cancellationToken As CancellationToken = Nothing) As Task(Of RelationalDataReader)

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

  • ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String, Object>)
    ExecuteScalar(IRelationalConnection, IReadOnlyDictionary(Of String, Object))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual object ExecuteScalar(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues)Public Overridable Function ExecuteScalar(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object)) As Object

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)

    Returns

    • System.Object
      System.Object
  • ExecuteScalarAsync(IRelationalConnection, IReadOnlyDictionary<String, Object>, CancellationToken)
    ExecuteScalarAsync(IRelationalConnection, IReadOnlyDictionary(Of String, Object), CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual Task<object> ExecuteScalarAsync(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues, CancellationToken cancellationToken = null)Public Overridable Function ExecuteScalarAsync(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), cancellationToken As CancellationToken = Nothing) As Task(Of Object)

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

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

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll