CSharpSnapshotGenerator.GenerateTriggerAnnotations 方法

定义

为触发器注释生成代码。

protected virtual void GenerateTriggerAnnotations (string triggerBuilderName, Microsoft.EntityFrameworkCore.Metadata.ITrigger trigger, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateTriggerAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.ITrigger * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateTriggerAnnotations : string * Microsoft.EntityFrameworkCore.Metadata.ITrigger * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateTriggerAnnotations (triggerBuilderName As String, trigger As ITrigger, stringBuilder As IndentedStringBuilder)

参数

triggerBuilderName
String

生成器变量的名称。

trigger
ITrigger

触发器。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于