Share via


MutableModelExtensions.SetPropertyAccessMode メソッド

定義

オーバーロード

SetPropertyAccessMode(IMutableModel, Nullable<PropertyAccessMode>)

PropertyAccessModeこのモデル内のすべてのエンティティ型のプロパティに使用する を設定します。

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

SetPropertyAccessMode(IMutableModel, Nullable<PropertyAccessMode>)

PropertyAccessModeこのモデル内のすべてのエンティティ型のプロパティに使用する を設定します。

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

SetPropertyAccessMode(IMutableModel, Nullable<PropertyAccessMode>)

PropertyAccessModeこのモデル内のすべてのエンティティ型のプロパティに使用する を設定します。

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

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

パラメーター

model
IMutableModel

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

propertyAccessMode
Nullable<PropertyAccessMode>

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

適用対象

SetPropertyAccessMode(IMutableModel, Nullable<PropertyAccessMode>)

PropertyAccessModeこのモデル内のすべてのエンティティ型のプロパティに使用する を設定します。

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

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

パラメーター

model
IMutableModel

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

propertyAccessMode
Nullable<PropertyAccessMode>

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

適用対象