语言

IConventionDbFunctionBuilder.IsNullable(Boolean, Boolean) 方法

定义

设置一个值,该值指示数据库函数是否可以返回 null 值。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder? IsNullable(bool nullable, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder IsNullable(bool nullable, bool fromDataAnnotation = false);
abstract member IsNullable : bool * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
Public Function IsNullable (nullable As Boolean, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

参数

nullable
Boolean

指示数据库函数是否内置的值。

fromDataAnnotation
Boolean

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

返回

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

适用于