IRelationalCommand Interface

Definition

A command to be executed against a relational database.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IRelationalCommand
public interface IRelationalCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandTemplate
type IRelationalCommand = interface
type IRelationalCommand = interface
    interface IRelationalCommandTemplate
Public Interface IRelationalCommand
Public Interface IRelationalCommand
Implements IRelationalCommandTemplate
Derived
Implements

Remarks

See Implementation of database providers and extensions for more information and examples.

Properties

CommandText

Gets the command text to be executed.

Parameters

Gets the parameters for the command.

Methods

CreateDbCommand(RelationalCommandParameterObject, Guid, DbCommandMethod)

Called by the execute methods to create a DbCommand for the given DbConnection and configure timeouts and transactions.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Executes the command with no results.

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
Obsolete.

Executes the command with no results.

ExecuteNonQuery(RelationalCommandParameterObject)

Executes the command with no results.

ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean, CancellationToken)
Obsolete.

Asynchronously executes the command with no results.

ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, CancellationToken)

Asynchronously executes the command with no results.

ExecuteNonQueryAsync(RelationalCommandParameterObject, CancellationToken)

Asynchronously executes the command with no results.

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Executes the command with a RelationalDataReader result.

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
Obsolete.

Executes the command with a RelationalDataReader result.

ExecuteReader(RelationalCommandParameterObject)

Executes the command with a RelationalDataReader result.

ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean, CancellationToken)
Obsolete.

Asynchronously executes the command with a RelationalDataReader result.

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

Asynchronously executes the command with a RelationalDataReader result.

ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken)

Asynchronously executes the command with a RelationalDataReader result.

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>)

Executes the command with a single scalar result.

ExecuteScalar(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
Obsolete.

Executes the command with a single scalar result.

ExecuteScalar(RelationalCommandParameterObject)

Executes the command with a single scalar result.

ExecuteScalarAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean, CancellationToken)
Obsolete.

Asynchronously executes the command with a single scalar result.

ExecuteScalarAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, CancellationToken)

Asynchronously executes the command with a single scalar result.

ExecuteScalarAsync(RelationalCommandParameterObject, CancellationToken)

Asynchronously executes the command with a single scalar result.

PopulateFrom(IRelationalCommandTemplate)

Populates this command from the provided commandTemplate.

Extension Methods

ExecuteNonQuery(IRelationalCommand, IRelationalConnection)

Executes the command with no results.

ExecuteNonQueryAsync(IRelationalCommand, IRelationalConnection, CancellationToken)

Asynchronously executes the command with no results.

ExecuteReader(IRelationalCommand, IRelationalConnection)

Executes the command with a RelationalDataReader result.

ExecuteReaderAsync(IRelationalCommand, IRelationalConnection, CancellationToken)

Asynchronously executes the command with a RelationalDataReader result.

ExecuteScalar(IRelationalCommand, IRelationalConnection)

Executes the command with a single scalar result.

ExecuteScalarAsync(IRelationalCommand, IRelationalConnection, CancellationToken)

Asynchronously executes the command with a single scalar result.

Applies to