Share via


RelationalCommandBuilderExtensions.AddRawParameter Method

Definition

Adds a parameter.

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddRawParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, System.Data.Common.DbParameter dbParameter);
static member AddRawParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * System.Data.Common.DbParameter -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddRawParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, dbParameter As DbParameter) 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.

dbParameter
DbParameter

The DbParameter being added.

Returns

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

Applies to