RuntimeDbFunction.AddParameter 方法

定义

将参数添加到函数。

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

参数

name
String

参数名称。

clrType
Type

参数类型。

propagatesNullability
Boolean

一个 值,该值指示参数是否传播为 Null 性。

storeType
String

此参数的存储类型。

typeMapping
RelationalTypeMapping

RelationalTypeMapping此参数的 。

返回

新参数。

适用于