Lingua

PropertyExtensions.GetBeforeSaveBehavior(IProperty) Metodo

Definizione

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

Si applica a