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

将生成器代码添加到 。

适用于