Table of Contents

Class RawSqlCommand

Namespace
Microsoft.EntityFrameworkCore.Storage
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Represents a raw SQL 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 class RawSqlCommand
Inheritance
RawSqlCommand
Inherited Members

Constructors

RawSqlCommand(IRelationalCommand, IReadOnlyDictionary<string, object>)

Initializes a new instance of the RawSqlCommand class.

public RawSqlCommand(IRelationalCommand relationalCommand, IReadOnlyDictionary<string, object> parameterValues)

Parameters

relationalCommand IRelationalCommand

The command to be executed.

parameterValues IReadOnlyDictionary<string, object>

The values to be assigned to parameters.

Properties

ParameterValues

Gets the values to be assigned to parameters.

public virtual IReadOnlyDictionary<string, object> ParameterValues { get; }

Property Value

IReadOnlyDictionary<string, object>

RelationalCommand

Gets the command to be executed.

public virtual IRelationalCommand RelationalCommand { get; }

Property Value

IRelationalCommand