Share via


IConventionPropertyBuilder.CanSetAfterSave Method

Definition

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

public bool CanSetAfterSave (Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior? behavior, bool fromDataAnnotation = false);
abstract member CanSetAfterSave : Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior> * bool -> bool
Public Function CanSetAfterSave (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 after 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 after the entity is saved to the database can be configured for this property.

Applies to