IConventionPropertyBase.SetPropertyAccessMode Metoda

Definice

Nastaví pro PropertyAccessMode tuto vlastnost .

public Microsoft.EntityFrameworkCore.PropertyAccessMode? SetPropertyAccessMode (Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode, bool fromDataAnnotation = false);
abstract member SetPropertyAccessMode : Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> * bool -> Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode>
Public Function SetPropertyAccessMode (propertyAccessMode As Nullable(Of PropertyAccessMode), Optional fromDataAnnotation As Boolean = false) As Nullable(Of PropertyAccessMode)

Parametry

propertyAccessMode
Nullable<PropertyAccessMode>

Hodnota PropertyAccessMode, nebo null vymažete nastavený režim.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Nakonfigurovaná hodnota.

Platí pro