共用方式為


CSharpSnapshotGenerator.GenerateTriggers 方法

定義

產生 物件的程式 ITrigger 代碼。

protected virtual void GenerateTriggers (string tableBuilderName, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string table, string? schema, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateTriggers : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * string * string * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateTriggers : string * Microsoft.EntityFrameworkCore.Metadata.IEntityType * string * string * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateTriggers (tableBuilderName As String, entityType As IEntityType, table As String, schema As String, stringBuilder As IndentedStringBuilder)

參數

tableBuilderName
String

資料表產生器變數的名稱。

entityType
IEntityType

實體類型。

table
String

資料表名稱。

schema
String

資料表架構。

stringBuilder
IndentedStringBuilder

建立器程式碼會新增至 。

適用於