RelationalTriggerBuilderExtensions.CanSetTableName 方法

定义

返回一个值,该值指示是否可以为触发器设置给定的表名称。

public static bool CanSetTableName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder triggerBuilder, string? name, bool fromDataAnnotation = false);
static member CanSetTableName : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder * string * bool -> bool
<Extension()>
Public Function CanSetTableName (triggerBuilder As IConventionTriggerBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

triggerBuilder
IConventionTriggerBuilder

要配置的触发器的生成器。

name
String

定义此触发器的表的名称。

fromDataAnnotation
Boolean

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

返回

true 如果可以为触发器设置表名称,则为 。

适用于