IRelationalCommand 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

Properties

CommandText CommandText

Gets the command text to be executed.

Parameters Parameters

Gets the parameters for the command.

Methods

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String, Object>) ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary(Of String, Object))

Executes the command with no results.

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

Asynchronously executes the command with no results.

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String, Object>) ExecuteReader(IRelationalConnection, IReadOnlyDictionary(Of String, Object))

Executes the command with a RelationalDataReader result.

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

Asynchronously executes the command with a RelationalDataReader result.

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

Executes the command with a single scalar result.

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

Asynchronously executes the command with a single scalar result.

Extension Methods

Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteNonQuery(IRelationalConnection) Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteNonQuery(IRelationalConnection)
Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteNonQueryAsync(IRelationalConnection, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteNonQueryAsync(IRelationalConnection, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteScalar(IRelationalConnection) Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteScalar(IRelationalConnection)
Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteScalarAsync(IRelationalConnection, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteScalarAsync(IRelationalConnection, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteReader(IRelationalConnection) Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteReader(IRelationalConnection)
Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteReaderAsync(IRelationalConnection, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.Storage.RelationalCommandExtensions.ExecuteReaderAsync(IRelationalConnection, System.Threading.CancellationToken)