Share via


RelationalCommandBuilderExtensions.AddPropertyParameter Method

Definition

Caution

Use overload with relationalTypeMapping

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddPropertyParameter (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 AddPropertyParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, string name, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member AddPropertyParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
[<System.Obsolete("Use overload with relationalTypeMapping")>]
static member AddPropertyParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * string * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddPropertyParameter (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 values for this parameter will come from.

Returns

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

Attributes

Applies to