Share via


IRelationalParameterBuilder.AddParameter Method

Definition

Overloads

AddParameter(String, String)

Adds a parameter.

AddParameter(String, String, IProperty)

Adds a parameter.

AddParameter(String, String, RelationalTypeMapping, Boolean)

Adds a parameter.

AddParameter(String, String)

Adds a parameter.

public void AddParameter (string invariantName, string name);
abstract member AddParameter : string * string -> unit
Public Sub AddParameter (invariantName As String, name As String)

Parameters

invariantName
String

The key that identifies this parameter. Note that IRelationalParameter 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.

name
String

The name to be used for the parameter when the command is executed against the database.

Applies to

AddParameter(String, String, IProperty)

Adds a parameter.

public void AddParameter (string invariantName, string name, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member AddParameter : string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> unit
Public Sub AddParameter (invariantName As String, name As String, property As IProperty)

Parameters

invariantName
String

The key that identifies this parameter. Note that IRelationalParameter 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.

name
String

The name to be used for the parameter when the command is executed against the database.

property
IProperty

The property that the type for this parameter will come from.

Applies to

AddParameter(String, String, RelationalTypeMapping, Boolean)

Adds a parameter.

public void AddParameter (string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool nullable);
abstract member AddParameter : string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool -> unit
Public Sub AddParameter (invariantName As String, name As String, typeMapping As RelationalTypeMapping, nullable As Boolean)

Parameters

invariantName
String

The key that identifies this parameter. Note that IRelationalParameter 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.

name
String

The name to be used for the parameter when the command is executed against the database.

typeMapping
RelationalTypeMapping

The type mapping for the property that values for this parameter will come from.

nullable
Boolean

A value indicating whether the parameter can contain null values.

Applies to