共用方式為


IConventionSkipNavigationBuilder.UsePropertyAccessMode 方法

定義

PropertyAccessMode設定要用於此導覽的 。

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

參數

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessMode要用於此導覽的 。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

如果已套用組態,則為相同的產生器實例, null 否則為 。

適用於