Relational​Command Relational​Command Class

Definition

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 class RelationalCommand : IRelationalCommandPublic Class RelationalCommand
    Implements IRelationalCommand
Inheritance
System.ObjectSystem.Object
RelationalCommandRelationalCommand
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

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
diagnosticSource
DiagnosticSource DiagnosticSource
commandText
System.String System.String
parameters
System.Collections.Generic.IReadOnlyList<IRelationalParameter> System.Collections.Generic.IReadOnlyList(Of IRelationalParameter)

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
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
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

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)
Value
System.Collections.Generic.IReadOnlyList<IRelationalParameter> System.Collections.Generic.IReadOnlyList(Of IRelationalParameter)

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
executeMethod
System.String System.String
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(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
executeMethod
System.String System.String
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(Of System.String, System.Object)
closeConnection
System.Boolean System.Boolean
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Object> System.Threading.Tasks.Task(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
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(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
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(Of System.String, System.Object)
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Int32> System.Threading.Tasks.Task(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
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(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
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(Of System.String, System.Object)
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<RelationalDataReader> System.Threading.Tasks.Task(Of RelationalDataReader)

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
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(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
parameterValues
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> System.Collections.Generic.IReadOnlyDictionary(Of System.String, System.Object)
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Object> System.Threading.Tasks.Task(Of System.Object)