IConventionPropertyBuilder.CanSetBeforeSave Method

Definition

Returns a value indicating whether the ability to be modified before the entity is saved to the database can be configured for this property from the current configuration source.

public bool CanSetBeforeSave (Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior? behavior, bool fromDataAnnotation = false);
abstract member CanSetBeforeSave : Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior> * bool -> bool
Public Function CanSetBeforeSave (behavior As Nullable(Of PropertySaveBehavior), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

behavior
Nullable<PropertySaveBehavior>

A value indicating whether this property can be modified before the entity is saved to the database. null to reset to default.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the ability to be modified before the entity is saved to the database can be configured for this property.

Applies to