RuntimeDbFunction.AddParameter Method

Definition

Adds a parameter to the function.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunctionParameter AddParameter (string name, Type clrType, bool propagatesNullability, string storeType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member AddParameter : string * Type * bool * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunctionParameter
override this.AddParameter : string * Type * bool * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunctionParameter
Public Overridable Function AddParameter (name As String, clrType As Type, propagatesNullability As Boolean, storeType As String, Optional typeMapping As RelationalTypeMapping = Nothing) As RuntimeDbFunctionParameter

Parameters

name
String

The parameter name.

clrType
Type

The parameter type.

propagatesNullability
Boolean

A value which indicates whether the parameter propagates nullability.

storeType
String

The store type of this parameter.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping for this parameter.

Returns

The new parameter.

Applies to