Table of Contents

Interface IRelationalParameter

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

A parameter in an IRelationalCommand. Note that this interface just represents a placeholder for a parameter and not the actual value. This is because the same command can be reused multiple times with different parameter values.

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

public interface IRelationalParameter

Properties

InvariantName

The name of the parameter.

string InvariantName { get; }

Property Value

string

Methods

AddDbParameter(DbCommand, IReadOnlyDictionary<string, object>)

Adds the parameter as a DbParameter to a DbCommand.

void AddDbParameter(DbCommand command, IReadOnlyDictionary<string, object> parameterValues)

Parameters

command DbCommand

The command to add the parameter to.

parameterValues IReadOnlyDictionary<string, object>

The map of parameter values

AddDbParameter(DbCommand, object)

Adds the parameter as a DbParameter to a DbCommand.

void AddDbParameter(DbCommand command, object value)

Parameters

command DbCommand

The command to add the parameter to.

value object

The value to be assigned to the parameter.