IConventionEntityTypeBuilder.CanHaveTrigger(String, Boolean) Method

Definition

Returns a value indicating whether the trigger can be configured.

public bool CanHaveTrigger (string modelName, bool fromDataAnnotation = false);
abstract member CanHaveTrigger : string * bool -> bool
Public Function CanHaveTrigger (modelName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

modelName
String

The name of the trigger.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the configuration can be applied.

Remarks

See Database triggers for more information and examples.

Applies to