PropertyExtensions.GetBeforeSaveBehavior(IProperty) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Attenzione
Use IReadOnlyProperty.GetBeforeSaveBehavior
Ottiene un valore che indica se questa proprietà può essere modificata o meno prima che l'entità venga salvata nel database.
Se Throw, verrà generata un'eccezione se a questa proprietà viene assegnato un valore quando si trova nello Added stato .
Se Ignore, qualsiasi set di valori verrà ignorato quando si trova nello Added stato .
public static Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior GetBeforeSaveBehavior(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.GetBeforeSaveBehavior")]
public static Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior GetBeforeSaveBehavior(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetBeforeSaveBehavior : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior
[<System.Obsolete("Use IReadOnlyProperty.GetBeforeSaveBehavior")>]
static member GetBeforeSaveBehavior : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.PropertySaveBehavior
<Extension()>
Public Function GetBeforeSaveBehavior (property As IProperty) As PropertySaveBehavior
Parametri
- property
- IProperty
Proprietà .
Valori restituiti
- Attributi