IProperty.BeforeSaveBehavior Property
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 a value indicating whether or not this property can be modified before the entity is saved to the database.
If Throw, then an exception will be thrown if a value is assigned to this property when it is in the Added state.
If Ignore, then any value set will be ignored when it is in the Added state.
public Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior BeforeSaveBehavior { get; }
member this.BeforeSaveBehavior : Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior
Public ReadOnly Property BeforeSaveBehavior As PropertySaveBehavior
Product | Versions |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: