CSharpSnapshotGenerator.GenerateTriggers 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生 物件的程式 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
建立器程式碼會新增至 。