Share via


IMutableTypeBase.AddProperty メソッド

定義

オーバーロード

AddProperty(String, Type, MemberInfo)

この型にプロパティを追加します。

AddProperty(String, Type)

この型にプロパティを追加します。

AddProperty(MemberInfo)

この型にプロパティを追加します。

AddProperty(String)

この型にプロパティを追加します。

AddProperty(String, Type, MemberInfo)

この型にプロパティを追加します。

public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo);
abstract member AddProperty : string * Type * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String, propertyType As Type, memberInfo As MemberInfo) As IMutableProperty

パラメーター

name
String

追加するプロパティの名前。

propertyType
Type

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

memberInfo
MemberInfo

対応する CLR 型のメンバー。

パラメーターとObject戻り値の型をString持つインデクサーを使用できます。

戻り値

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

適用対象

AddProperty(String, Type)

この型にプロパティを追加します。

public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name, Type propertyType);
abstract member AddProperty : string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String, propertyType As Type) As IMutableProperty

パラメーター

name
String

追加するプロパティの名前。

propertyType
Type

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

戻り値

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

適用対象

AddProperty(MemberInfo)

この型にプロパティを追加します。

[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (System.Reflection.MemberInfo memberInfo);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
override this.AddProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Overridable Function AddProperty (memberInfo As MemberInfo) As IMutableProperty

パラメーター

memberInfo
MemberInfo

CLR 型の対応するメンバー。

戻り値

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

属性

適用対象

AddProperty(String)

この型にプロパティを追加します。

public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name);
abstract member AddProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String) As IMutableProperty

パラメーター

name
String

追加するプロパティの名前。

戻り値

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

適用対象