IMutableTrigger Interface

Definition

Represents a store trigger.

public interface IMutableTrigger : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger
type IMutableTrigger = interface
    interface IReadOnlyTrigger
    interface IReadOnlyAnnotatable
    interface IMutableAnnotatable
Public Interface IMutableTrigger
Implements IMutableAnnotatable, IReadOnlyTrigger
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 IMutableEntityType on which this trigger is defined.

Item[String]

Gets or sets the value of the annotation with the given name.

(Inherited from IMutableAnnotatable)
ModelName

Gets the name of the trigger in the model.

(Inherited from IReadOnlyTrigger)

Methods

AddAnnotation(String, Object)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IMutableAnnotatable)
AddAnnotations(IEnumerable<IAnnotation>)

Adds annotations to an object.

(Inherited from IMutableAnnotatable)
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 IMutableAnnotatable)
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 IMutableAnnotatable)
RemoveAnnotation(String)

Removes the given annotation from this object.

(Inherited from IMutableAnnotatable)
SetAnnotation(String, Object)

Sets the annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from IMutableAnnotatable)
SetOrRemoveAnnotation(String, Object)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

(Inherited from IMutableAnnotatable)
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.

(Inherited from IReadOnlyTrigger)

Extension Methods

GetDatabaseName(IReadOnlyTrigger)

Gets the name of the trigger in the database.

GetDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier)

Gets the database name of the trigger.

GetDefaultDatabaseName(IReadOnlyTrigger)

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

GetDefaultDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier)

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

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.

SetDatabaseName(IMutableTrigger, String)

Sets the name of the trigger in the database.

SetTableName(IMutableTrigger, String)

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

SetTableSchema(IMutableTrigger, String)

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

Applies to