Share via


CSharpSnapshotGenerator.GenerateTrigger Method

Definition

Generates code for an ITrigger.

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

Parameters

tableBuilderName
String

The name of the table builder variable.

trigger
ITrigger

The trigger.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to