Condividi tramite


IReadOnlyTrigger Interface

Definition

Represents a store trigger.

public interface IReadOnlyTrigger : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlyTrigger = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlyTrigger
Implements IReadOnlyAnnotatable
Derived
Implements

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.

Item[String]

Gets the value of the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
ModelName

Gets the name of the trigger in the model.

Methods

AnnotationsToDebugString(Int32)

Gets the debug string for all annotations declared on the object.

(Inherited from IReadOnlyAnnotatable)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotation(String)

Gets the annotation with the given name, throwing if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IReadOnlyAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

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.

Extension Methods

GetDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier)

Gets the database name of the trigger.

GetDatabaseName(IReadOnlyTrigger)

Gets the name of the trigger in the database.

GetDefaultDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier)

Returns the default database name that would be used for this trigger.

GetDefaultDatabaseName(IReadOnlyTrigger)

Returns the default name that would be used for this trigger in the database.

GetTableName(IReadOnlyTrigger)

Gets the name of the table on which this trigger is defined.

GetTableSchema(IReadOnlyTrigger)

Gets the schema of the table on which this trigger is defined.

Applies to