RelationalTriggerBuilderExtensions.HasTableSchema 方法

定义

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

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

参数

triggerBuilder
IConventionTriggerBuilder

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

schema
String

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

fromDataAnnotation
Boolean

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

返回

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

适用于