Table of Contents

Interface IReadOnlyTrigger

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Represents a store trigger.

public interface IReadOnlyTrigger : IReadOnlyAnnotatable
Inherited Members

Remarks

Since triggers features vary across databases, this is mainly an extension point for providers to add their own annotations.

See Database triggers for more information and examples.

Properties

EntityType

Gets the entity type on which this trigger is defined.

IReadOnlyEntityType EntityType { get; }

Property Value

IReadOnlyEntityType

ModelName

Gets the name of the trigger in the model.

string ModelName { get; }

Property Value

string

Methods

ToDebugString(MetadataDebugStringOptions, int)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

string ToDebugString(MetadataDebugStringOptions options = MetadataDebugStringOptions.ShortDefault, int indent = 0)

Parameters

options MetadataDebugStringOptions

Options for generating the string.

indent int

The number of indent spaces to use before each new line.

Returns

string

A human-readable representation.