RelationalCommandBuilderExtensions.AddCompositeParameter Method

Definition

Overloads

AddCompositeParameter(IRelationalCommandBuilder, String, Action<IRelationalParameterBuilder>)

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

AddCompositeParameter(IRelationalCommandBuilder, String, IReadOnlyList<IRelationalParameter>)

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

AddCompositeParameter(IRelationalCommandBuilder, String, Action<IRelationalParameterBuilder>)

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

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddCompositeParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, Action<Microsoft.EntityFrameworkCore.Storage.IRelationalParameterBuilder> buildAction);
static member AddCompositeParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * Action<Microsoft.EntityFrameworkCore.Storage.IRelationalParameterBuilder> -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddCompositeParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, buildAction As Action(Of IRelationalParameterBuilder)) 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.

buildAction
Action<IRelationalParameterBuilder>

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

Returns

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

Applies to

AddCompositeParameter(IRelationalCommandBuilder, String, IReadOnlyList<IRelationalParameter>)

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

public static Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder AddCompositeParameter (this Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder commandBuilder, string invariantName, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.IRelationalParameter> subParameters);
static member AddCompositeParameter : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Storage.IRelationalParameter> -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilder
<Extension()>
Public Function AddCompositeParameter (commandBuilder As IRelationalCommandBuilder, invariantName As String, subParameters As IReadOnlyList(Of IRelationalParameter)) 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.

subParameters
IReadOnlyList<IRelationalParameter>

The parameters to include in the composite.

Returns

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

Applies to