DbFunctionBuilder.IConventionDbFunctionBuilder.CanSetName 方法

定义

返回一个值,该值指示是否可以为数据库函数设置给定的名称。

bool IConventionDbFunctionBuilder.CanSetName (string name, bool fromDataAnnotation);
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder.CanSetName : string * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder.CanSetName : string * bool -> bool
Function CanSetName (name As String, fromDataAnnotation As Boolean) As Boolean Implements IConventionDbFunctionBuilder.CanSetName

参数

name
String

数据库中函数的名称。

fromDataAnnotation
Boolean

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

返回

true 如果可以为数据库函数设置给定的名称,则为 。

实现

适用于