Partilhar via


IConventionTrigger Interface

Definition

Represents a store trigger.

public interface IConventionTrigger : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger
type IConventionTrigger = interface
    interface IReadOnlyTrigger
    interface IReadOnlyAnnotatable
    interface IConventionAnnotatable
Public Interface IConventionTrigger
Implements IConventionAnnotatable, IReadOnlyTrigger
Implements

Remarks

See Database triggers for more information and examples.

Properties

Builder

Gets the builder that can be used to configure this trigger.

EntityType

Gets the IConventionEntityType on which this trigger is defined.

IsInModel

Indicates whether this object is in a model, i.e. hasn't been removed from one.

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

(Inherited from IReadOnlyTrigger)

Methods

AddAnnotation(String, Object, Boolean)

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

(Inherited from IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

(Inherited from IConventionAnnotatable)
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 IConventionAnnotatable)
GetAnnotation(String)

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

(Inherited from IConventionAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IConventionAnnotatable)
GetConfigurationSource()

Gets the configuration source for this trigger.

RemoveAnnotation(String)

Removes the annotation with the given name from this object.

(Inherited from IConventionAnnotatable)
SetAnnotation(String, Object, Boolean)

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

(Inherited from IConventionAnnotatable)
SetOrRemoveAnnotation(String, Object, Boolean)

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 IConventionAnnotatable)
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, StoreObjectIdentifier)

Gets the database name of the trigger.

GetDatabaseName(IReadOnlyTrigger)

Gets the name of the trigger in the database.

GetDatabaseNameConfigurationSource(IConventionTrigger)

Gets the configuration source for the database name.

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.

GetTableNameConfigurationSource(IConventionTrigger)

Gets the configuration source for the table name.

GetTableSchema(IReadOnlyTrigger)

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

GetTableSchemaConfigurationSource(IConventionTrigger)

Gets the configuration source for the table schema.

SetDatabaseName(IConventionTrigger, String, Boolean)

Sets the name of the trigger in the database.

SetTableName(IConventionTrigger, String, Boolean)

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

SetTableSchema(IConventionTrigger, String, Boolean)

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

Applies to