Sdílet prostřednictvím


IConventionSkipNavigationBuilder.UsePropertyAccessMode Metoda

Definice

Nastaví pro PropertyAccessMode tuto navigaci.

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

Parametry

propertyAccessMode
Nullable<PropertyAccessMode>

Slouží PropertyAccessMode k použití pro tuto navigaci.

fromDataAnnotation
Boolean

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

Návraty

Stejná instance tvůrce, pokud byla použita konfigurace, null jinak.

Platí pro