语言

IConventionStoredProcedureBuilder.HasParameter(String, Boolean) 方法

定义

如果没有映射到给定属性的参数,则配置新参数。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureParameterBuilder? HasParameter(string propertyName, bool fromDataAnnotation = false);
abstract member HasParameter : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureParameterBuilder
Public Function HasParameter (propertyName As String, Optional fromDataAnnotation As Boolean = false) As IConventionStoredProcedureParameterBuilder

参数

propertyName
String

属性名称。

fromDataAnnotation
Boolean

指示是否使用数据注释指定了配置。

返回

如果应用了配置,则为同一生成器实例, null 否则为同一个生成器实例。

适用于