Share via


RelationalCommandBuilderExtensions.AddParameter Method

Definition

Overloads

AddParameter(IRelationalCommandBuilder, String, String)
Obsolete.

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, IProperty)
Obsolete.

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Boolean)

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>)

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>, ParameterDirection)

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String)

Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs

Caution

Use overload which takes TypeMapping argument.

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name);
[System.Obsolete("Use overload which takes TypeMapping argument.")]
public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
[<System.Obsolete("Use overload which takes TypeMapping argument.")>]
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String) As IRelationalCommandBuilder

Parameters

commandBuilder
IRelationalCommandBuilder

The command builder.

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.

Returns

The same builder instance so that multiple calls can be chained.

Attributes

Applies to

AddParameter(IRelationalCommandBuilder, String, String, IProperty)

Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs

Caution

Use overload with relationalTypeMapping

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use overload with relationalTypeMapping")]
public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
[<System.Obsolete("Use overload with relationalTypeMapping")>]
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, property As IProperty) As IRelationalCommandBuilder

Parameters

commandBuilder
IRelationalCommandBuilder

The command builder.

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.

Returns

The same builder instance so that multiple calls can be chained.

Attributes

Applies to

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Boolean)

Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping, bool nullable);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, typeMapping As RelationalTypeMapping, nullable As Boolean) As IRelationalCommandBuilder

Parameters

commandBuilder
IRelationalCommandBuilder

The command builder.

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.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>)

Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping relationalTypeMapping, bool? nullable);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Nullable<bool> -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, relationalTypeMapping As RelationalTypeMapping, nullable As Nullable(Of Boolean)) As IRelationalCommandBuilder

Parameters

commandBuilder
IRelationalCommandBuilder

The command builder.

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.

relationalTypeMapping
RelationalTypeMapping

The relational type mapping for this parameter.

nullable
Nullable<Boolean>

A value indicating whether the parameter could contain a null value.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>, ParameterDirection)

Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs
Source:
RelationalCommandBuilderExtensions.cs

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping relationalTypeMapping, bool? nullable, System.Data.ParameterDirection direction = System.Data.ParameterDirection.Input);
static member AddParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Nullable<bool> * System.Data.ParameterDirection -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, name As String, relationalTypeMapping As RelationalTypeMapping, nullable As Nullable(Of Boolean), Optional direction As ParameterDirection = System.Data.ParameterDirection.Input) As IRelationalCommandBuilder

Parameters

commandBuilder
IRelationalCommandBuilder

The command builder.

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.

relationalTypeMapping
RelationalTypeMapping

The relational type mapping for this parameter.

nullable
Nullable<Boolean>

A value indicating whether the parameter could contain a null value.

direction
ParameterDirection

The parameter direction.

Returns

The same builder instance so that multiple calls can be chained.

Applies to