IMutableProperty.SetAfterSaveBehavior 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.
Gets or sets a value indicating whether this property can be modified after the entity is saved to the database.
public void SetAfterSaveBehavior (Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior? afterSaveBehavior);
abstract member SetAfterSaveBehavior : Nullable<Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior> -> unit
Public Sub SetAfterSaveBehavior (afterSaveBehavior As Nullable(Of PropertySaveBehavior))
Parameters
- afterSaveBehavior
- Nullable<PropertySaveBehavior>
A value indicating whether this property can be modified after the entity is saved to the database.
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
Entity Framework