Share via


IMutableTypeBase.AddComplexIndexerProperty メソッド

定義

インデクサーによってバックアップされた複合プロパティをこの型に追加します。

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexIndexerProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexIndexerProperty : string * Type * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
override this.AddComplexIndexerProperty : string * Type * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
Public Overridable Function AddComplexIndexerProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false) As IMutableComplexProperty

パラメーター

name
String

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

propertyType
Type

プロパティの型。

complexType
Type

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

complexTypeName
String

複合型の名前。

collection
Boolean

プロパティがコレクションを表すかどうかを示します。

戻り値

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

適用対象