MutableEntityTypeExtensions.AddProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddProperty(IMutableEntityType, MemberInfo) |
このエンティティ型にプロパティを追加します。 |
AddProperty(IMutableEntityType, PropertyInfo) |
このエンティティにプロパティを追加します。 |
AddProperty(IMutableEntityType, String) |
このエンティティ型にプロパティを追加します。 |
AddProperty(IMutableEntityType, String, Type) |
このエンティティ型にプロパティを追加します。 |
AddProperty(IMutableEntityType, MemberInfo)
このエンティティ型にプロパティを追加します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, memberInfo As MemberInfo) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
エンティティの型。
- memberInfo
- MemberInfo
エンティティ クラスの対応するメンバー。
戻り値
新しく作成されたプロパティ。
適用対象
AddProperty(IMutableEntityType, PropertyInfo)
このエンティティにプロパティを追加します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
プロパティを追加するエンティティ型。
- propertyInfo
- PropertyInfo
エンティティ クラスの対応するプロパティ。
戻り値
新しく作成されたプロパティ。
適用対象
AddProperty(IMutableEntityType, String)
このエンティティ型にプロパティを追加します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, name As String) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
エンティティの型。
- name
- String
追加するプロパティの名前。
戻り値
新しく作成されたプロパティ。
適用対象
AddProperty(IMutableEntityType, String, Type)
このエンティティ型にプロパティを追加します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty
パラメーター
- entityType
- IMutableEntityType
エンティティの型。
- name
- String
追加するプロパティの名前。
- propertyType
- Type
プロパティが保持する値の型。
戻り値
新しく作成されたプロパティ。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework