RelationalTriggerBuilderExtensions.CanSetTableSchema 方法

定义

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

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

参数

triggerBuilder
IConventionTriggerBuilder

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

schema
String

定义此触发器的表的架构。

fromDataAnnotation
Boolean

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

返回

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

适用于