次の方法で共有


MutableEntityTypeExtensions.SetPropertyAccessMode メソッド

定義

オーバーロード

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

このエンティティ型の PropertyAccessMode プロパティに使用する を設定します。

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

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

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

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

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

このエンティティ型の PropertyAccessMode プロパティに使用する を設定します。

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

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

パラメーター

entityType
IMutableEntityType

アクセス モードを設定するエンティティ型。

propertyAccessMode
Nullable<PropertyAccessMode>

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

適用対象

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)

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

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

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

パラメーター

entityType
IMutableEntityType

アクセス モードを設定するエンティティ型。

propertyAccessMode
Nullable<PropertyAccessMode>

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

適用対象