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
ModelName
Gets the name of the trigger in the model.
string ModelName { get; }
Property Value
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
MetadataDebugStringOptionsOptions for generating the string.
indent
intThe number of indent spaces to use before each new line.
Returns
- string
A human-readable representation.