共用方式為


RelationalTriggerBuilderExtensions.HasTableName 方法

定義

設定定義這個觸發程式之資料表的名稱。

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

參數

triggerBuilder
IConventionTriggerBuilder

要設定之觸發程式的產生器。

name
String

定義這個觸發程式的資料表名稱。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

如果已套用組態,則為相同的產生器實例, null 否則為 。

適用於