次の方法で共有


MutableTypeBaseExtensions.SetPropertyAccessMode メソッド

定義

このエンティティ型の PropertyAccessMode プロパティとナビゲーションに使用する を設定します。

個々のプロパティとナビゲーションがこのアクセス モードをオーバーライドできることに注意してください。 ここで設定した値は、オーバーライドが指定されていないプロパティまたはナビゲーションに使用されます。

public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableTypeBase, propertyAccessMode As Nullable(Of PropertyAccessMode))

パラメーター

entityType
IMutableTypeBase

アクセス モードを設定する型。

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModeモード セットをクリアする 、またはnull

適用対象