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

指出 屬性是否代表集合。

傳回

新建立的屬性。

適用於