Share via


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 否则为 。

适用于