Interface IConventionTriggerBuilder
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.dll
Provides an API point for provider-specific extensions for configuring a IConventionTrigger.
public interface IConventionTriggerBuilder : IConventionAnnotatableBuilder
- Inherited Members
Remarks
See Model building conventions for more information and examples.
Properties
Metadata
The trigger being configured.
IConventionTrigger Metadata { get; }
Property Value
Methods
HasAnnotation(string, object?, bool)
Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists with same or lower ConfigurationSource.
IConventionTriggerBuilder? HasAnnotation(string name, object? value, bool fromDataAnnotation = false)
Parameters
name
stringThe name of the annotation to be set.
value
objectThe value to be stored in the annotation.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionTriggerBuilder
An IConventionTriggerBuilder to continue configuration if the annotation was set, null otherwise.
HasNoAnnotation(string, bool)
Removes the annotation with the given name from this object.
IConventionTriggerBuilder? HasNoAnnotation(string name, bool fromDataAnnotation = false)
Parameters
name
stringThe name of the annotation to remove.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionTriggerBuilder
An IConventionTriggerBuilder to continue configuration if the annotation was set, null otherwise.
HasNonNullAnnotation(string, object?, bool)
Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists with same or lower ConfigurationSource. Removes the annotation if null value is specified.
IConventionTriggerBuilder? HasNonNullAnnotation(string name, object? value, bool fromDataAnnotation = false)
Parameters
name
stringThe name of the annotation to be set.
value
objectThe value to be stored in the annotation. null to remove the annotations.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- IConventionTriggerBuilder
An IConventionTriggerBuilder to continue configuration if the annotation was set or removed, null otherwise.