EntityTypeBuilder.HasTrigger(IMutableEntityType, String) Method

Definition

Configures a trigger for the the entity type.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.TriggerBuilder HasTrigger (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string modelName);
static member HasTrigger : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.TriggerBuilder
Public Shared Function HasTrigger (entityType As IMutableEntityType, modelName As String) As TriggerBuilder

Parameters

entityType
IMutableEntityType

The entity type.

modelName
String

The name of the trigger.

Returns

A builder that can be used to configure the trigger.

Applies to