RawSqlCommand RawSqlCommand Class

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.

Syntax

Declaration

public class RawSqlCommandPublic Class RawSqlCommand

Inheritance Hierarchy

  • System.Object
    System.Object
  • RawSqlCommand
    RawSqlCommand

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

Initializes a new instance of the RawSqlCommand class.

Properties summary

Gets the values to be assigned to parameters.

Gets the command to be executed.

Constructors

  • RawSqlCommand(IRelationalCommand, IReadOnlyDictionary<String, Object>)
    RawSqlCommand(IRelationalCommand, IReadOnlyDictionary(Of String, Object))

    Initializes a new instance of the RawSqlCommand class.

    public RawSqlCommand(IRelationalCommand relationalCommand, IReadOnlyDictionary<string, object> parameterValues)Public Sub New(relationalCommand As IRelationalCommand, parameterValues As IReadOnlyDictionary(Of String, Object))

    Parameters

    • relationalCommand

      The command to be executed.

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

      The values to be assigned to parameters.

Properties

  • ParameterValues
    ParameterValues

    Gets the values to be assigned to parameters.

    public virtual IReadOnlyDictionary<string, object> ParameterValues { get; }Public Overridable ReadOnly Property ParameterValues As IReadOnlyDictionary(Of String, Object)

    Property Value

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

    Gets the command to be executed.

    public virtual IRelationalCommand RelationalCommand { get; }Public Overridable ReadOnly Property RelationalCommand As IRelationalCommand

    Property Value

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll