MutableEntityTypeExtensions.GetOrAddProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
GetOrAddProperty(IMutableEntityType, PropertyInfo) |
指定した名前の プロパティを取得するか、まだ定義されていない場合は新しいプロパティを作成します。 |
GetOrAddProperty(IMutableEntityType, String, Type) |
指定した名前の プロパティを取得するか、まだ定義されていない場合は新しいプロパティを作成します。 |
GetOrAddProperty(IMutableEntityType, String, Type, Boolean) |
指定した名前の プロパティを取得するか、まだ定義されていない場合は新しいプロパティを作成します。 |
GetOrAddProperty(IMutableEntityType, PropertyInfo)
指定した名前の プロパティを取得するか、まだ定義されていない場合は新しいプロパティを作成します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetOrAddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member GetOrAddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetOrAddProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
プロパティを取得または追加するエンティティ型。
- propertyInfo
- PropertyInfo
エンティティ クラスの対応するプロパティ。
戻り値
既存または新しく作成されたプロパティ。
注釈
返されるプロパティの型が指定されていない可能性があります。
適用対象
GetOrAddProperty(IMutableEntityType, String, Type)
指定した名前の プロパティを取得するか、まだ定義されていない場合は新しいプロパティを作成します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetOrAddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member GetOrAddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetOrAddProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
プロパティを取得または追加するエンティティ型。
- name
- String
プロパティの名前。
- propertyType
- Type
プロパティが保持する値の型。
戻り値
既存または新しく作成されたプロパティ。
注釈
返されるプロパティの型が指定されていない可能性があります。
適用対象
GetOrAddProperty(IMutableEntityType, String, Type, Boolean)
指定した名前の プロパティを取得するか、まだ定義されていない場合は新しいプロパティを作成します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetOrAddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType, bool shadow);
static member GetOrAddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetOrAddProperty (entityType As IMutableEntityType, name As String, propertyType As Type, shadow As Boolean) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
プロパティを取得または追加するエンティティ型。
- name
- String
プロパティの名前。
- propertyType
- Type
プロパティが保持する値の型。
- shadow
- Boolean
プロパティがシャドウ状態であるかどうかを示します。
戻り値
既存または新しく作成されたプロパティ。
注釈
返されるプロパティの型と影が指定されていない可能性があります。
適用対象
Entity Framework