Dela via


IReadOnlyProperty.GetAfterSaveBehavior Method

Definition

Gets a value indicating whether or not this property can be modified after the entity is saved to the database.

public Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior GetAfterSaveBehavior ();
abstract member GetAfterSaveBehavior : unit -> Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior
Public Function GetAfterSaveBehavior () As PropertySaveBehavior

Returns

The after save behavior for this property.

Remarks

If Throw, then an exception will be thrown if a new value is assigned to this property after the entity exists in the database.

If Ignore, then any modification to the property value of an entity that already exists in the database will be ignored.

Applies to