Class TriggerBuilder
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Builders
- Assembly
- Microsoft.EntityFrameworkCore.dll
Provides an API point for provider-specific extensions for configuring a ITrigger.
public class TriggerBuilder : IInfrastructure<IConventionTriggerBuilder>
- Inheritance
-
TriggerBuilder
- Implements
- Inherited Members
- Extension Methods
Constructors
TriggerBuilder(IMutableTrigger)
Creates a new builder for the given ITrigger.
public TriggerBuilder(IMutableTrigger trigger)
Parameters
trigger
IMutableTriggerThe IMutableTrigger to configure.
Properties
Builder
Gets the builder that can be used to configure this trigger.
protected virtual IConventionTriggerBuilder Builder { get; }
Property Value
InternalBuilder
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[EntityFrameworkInternal]
protected virtual InternalTriggerBuilder InternalBuilder { get; }
Property Value
Metadata
The trigger being configured.
public virtual IMutableTrigger Metadata { get; }
Property Value
Methods
HasAnnotation(string, object?)
Adds or updates an annotation on the trigger. If an annotation with the key specified in annotation
already exists, its value will be updated.
public virtual TriggerBuilder HasAnnotation(string annotation, object? value)
Parameters
annotation
stringThe key of the annotation to be added or updated.
value
objectThe value to be stored in the annotation.
Returns
- TriggerBuilder
The same builder instance so that multiple configuration calls can be chained.