RelationalTriggerBuilderExtensions.HasDatabaseName 方法

定义

设置触发器的数据库名称。

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

参数

triggerBuilder
IConventionTriggerBuilder

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

name
String

触发器的数据库名称。

fromDataAnnotation
Boolean

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

返回

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

适用于