PropertyExtensions.GetBeforeSaveBehavior(IProperty) Méthode

Définition

Attention

Use IReadOnlyProperty.GetBeforeSaveBehavior

Obtient une valeur indiquant si cette propriété peut être modifiée avant l’enregistrement de l’entité dans la base de données.

Si Throw, une exception est levée si une valeur est affectée à cette propriété lorsqu’elle est à l’état Added .

Si Ignore, tout jeu de valeurs est ignoré lorsqu’il est à l’état Added .

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

Paramètres

property
IProperty

Propriété.

Retours

Attributs

S’applique à