次の方法で共有


IConventionTypeBaseBuilder.ComplexIndexerProperty メソッド

定義

指定した名前で複合インデクサー プロパティを構成するために使用できるオブジェクトを返します。 一致するプロパティが存在しない場合は、新しいプロパティが追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexIndexerProperty (Type propertyType, string propertyName, Type? complexType, bool fromDataAnnotation = false);
abstract member ComplexIndexerProperty : Type * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexIndexerProperty (propertyType As Type, propertyName As String, complexType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder

パラメーター

propertyType
Type

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

propertyName
String

構成するプロパティの名前。

complexType
Type

ターゲット複合型。

fromDataAnnotation
Boolean

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

戻り値

型に存在する場合は、プロパティを構成するために使用できるオブジェクト。それ以外の null 場合は 。

適用対象