MutableEntityTypeExtensions.AddProperty メソッド

定義

オーバーロード

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

プロパティが保持する値の型。

戻り値

新しく作成されたプロパティ。

適用対象