IReadOnlyProperty.GetBeforeSaveBehavior 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 a value indicating whether or not this property can be modified before the entity is saved to the database.
public Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior GetBeforeSaveBehavior ();
abstract member GetBeforeSaveBehavior : unit -> Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior
Public Function GetBeforeSaveBehavior () As PropertySaveBehavior
Returns
The before save behavior for this property.
Remarks
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.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Entity Framework