RelationalTriggerExtensions.SetDatabaseName 方法

定义

重载

SetDatabaseName(IMutableTrigger, String)

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

SetDatabaseName(IConventionTrigger, String, Boolean)

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

SetDatabaseName(IMutableTrigger, String)

Source:
RelationalTriggerExtensions.cs
Source:
RelationalTriggerExtensions.cs
Source:
RelationalTriggerExtensions.cs

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

public static void SetDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.IMutableTrigger trigger, string? name);
static member SetDatabaseName : Microsoft.EntityFrameworkCore.Metadata.IMutableTrigger * string -> unit
<Extension()>
Public Sub SetDatabaseName (trigger As IMutableTrigger, name As String)

参数

trigger
IMutableTrigger

触发器。

name
String

数据库中触发器的名称。

适用于

SetDatabaseName(IConventionTrigger, String, Boolean)

Source:
RelationalTriggerExtensions.cs
Source:
RelationalTriggerExtensions.cs
Source:
RelationalTriggerExtensions.cs

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

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

参数

trigger
IConventionTrigger

触发器。

name
String

数据库中触发器的名称。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于