IRelationalParameterBuilder.AddCompositeParameter Method

Definition

Adds a parameter that is ultimately represented as multiple DbParameters in the final command.

public void AddCompositeParameter (string invariantName, Action<Microsoft.EntityFrameworkCore.Storage.IRelationalParameterBuilder> buildAction);
abstract member AddCompositeParameter : string * Action<Microsoft.EntityFrameworkCore.Storage.IRelationalParameterBuilder> -> unit
Public Sub AddCompositeParameter (invariantName As String, buildAction As Action(Of IRelationalParameterBuilder))

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.

buildAction
Action<IRelationalParameterBuilder>

The action to add the multiple parameters that this placeholder represents.

Applies to