IRelationalParameterBuilder.AddCompositeParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework