CosmosTriggerBuilderExtensions.HasTriggerOperation Method
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.
Configures the Cosmos DB trigger operation for this trigger.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder? HasTriggerOperation(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder triggerBuilder, Microsoft.Azure.Cosmos.Scripts.TriggerOperation? triggerOperation, bool fromDataAnnotation = false);
static member HasTriggerOperation : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder * Nullable<Microsoft.Azure.Cosmos.Scripts.TriggerOperation> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder
<Extension()>
Public Function HasTriggerOperation (triggerBuilder As IConventionTriggerBuilder, triggerOperation As Nullable(Of TriggerOperation), Optional fromDataAnnotation As Boolean = false) As IConventionTriggerBuilder
Parameters
- triggerBuilder
- IConventionTriggerBuilder
The builder for the trigger being configured.
- triggerOperation
- Nullable<TriggerOperation>
The Cosmos DB trigger operation.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the configuration was applied,
null otherwise.