Share via


RuntimeStoredProcedure.AddParameter Method

Definition

Adds a new parameter mapped to the property with the given name.

public virtual Microsoft.EntityFrameworkCore.Metadata.Internal.RuntimeStoredProcedureParameter AddParameter (string name, System.Data.ParameterDirection direction, bool forRowsAffected, string? propertyName, bool? forOriginalValue);
abstract member AddParameter : string * System.Data.ParameterDirection * bool * string * Nullable<bool> -> Microsoft.EntityFrameworkCore.Metadata.Internal.RuntimeStoredProcedureParameter
override this.AddParameter : string * System.Data.ParameterDirection * bool * string * Nullable<bool> -> Microsoft.EntityFrameworkCore.Metadata.Internal.RuntimeStoredProcedureParameter
Public Overridable Function AddParameter (name As String, direction As ParameterDirection, forRowsAffected As Boolean, propertyName As String, forOriginalValue As Nullable(Of Boolean)) As RuntimeStoredProcedureParameter

Parameters

name
String

The name of the parameter.

direction
ParameterDirection

The direction.

forRowsAffected
Boolean

Whether the parameter holds the rows affected.

propertyName
String

The name of the corresponding property.

forOriginalValue
Nullable<Boolean>

Whether the parameter holds the original value.

Returns

Microsoft.EntityFrameworkCore.Metadata.Internal.RuntimeStoredProcedureParameter

Applies to