次の方法で共有


IConventionTypeBase.AddComplexIndexerProperty メソッド

定義

と インデクサーによってサポートされるプロパティをこの型に追加します。

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

パラメーター

name
String

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

propertyType
Type

プロパティの型。

complexType
Type

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

complexTypeName
String

複合型の名前。

collection
Boolean

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

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

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

適用対象