ITrigger Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a store trigger.
public interface ITrigger : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTrigger
type ITrigger = interface
interface IReadOnlyTrigger
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Interface ITrigger
Implements IAnnotatable, IReadOnlyTrigger
- 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 |
ModelName |
Gets the name of the trigger in the model. (Inherited from IReadOnlyTrigger) |
Methods
AddRuntimeAnnotation(String, Object) |
Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists. (Inherited from IAnnotatable) |
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 |
FindRuntimeAnnotation(String) |
Gets the runtime annotation with the given name, returning |
FindRuntimeAnnotationValue(String) |
Gets the value of the runtime annotation with the given name, returning |
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) |
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg) |
Gets the value of the runtime annotation with the given name, adding it if one does not exist. (Inherited from IAnnotatable) |
GetRuntimeAnnotations() |
Gets all the runtime annotations on the current object. (Inherited from IAnnotatable) |
RemoveRuntimeAnnotation(String) |
Removes the given runtime annotation from this object. (Inherited from IAnnotatable) |
SetRuntimeAnnotation(String, Object) |
Sets the runtime annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists. (Inherited from IAnnotatable) |
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. |
Applies to
Entity Framework