次の方法で共有


IConventionPropertyBaseBuilder.UsePropertyAccessMode メソッド

定義

PropertyAccessModeこのプロパティに似たオブジェクトに使用する を設定します。

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

パラメーター

propertyAccessMode
Nullable<PropertyAccessMode>

PropertyAccessModeこのプロパティに似たオブジェクトに使用する 。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

構成が適用された場合は同じビルダー インスタンス。 null それ以外の場合は 。

適用対象