語言

ComplexCollectionBuilder.IndexerProperty 方法

定義

多載

名稱 Description
IndexerProperty(Type, String)

回傳一個物件,可用來配置複雜型態的屬性。 若不存在帶有該名稱的屬性,則會新增一個屬性。

IndexerProperty<TProperty>(String)

回傳一個物件,可用來配置複雜型態的屬性。 若不存在帶有該名稱的屬性,則會新增一個屬性。

IndexerProperty(Type, String)

來源:
ComplexCollectionBuilder.cs
來源:
ComplexCollectionBuilder.cs

回傳一個物件,可用來配置複雜型態的屬性。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionTypePropertyBuilder IndexerProperty(Type propertyType, string propertyName);
abstract member IndexerProperty : Type * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionTypePropertyBuilder
override this.IndexerProperty : Type * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionTypePropertyBuilder
Public Overridable Function IndexerProperty (propertyType As Type, propertyName As String) As ComplexCollectionTypePropertyBuilder

參數

propertyType
Type

要設定的財產類型。

propertyName
String

要設定的物業名稱。

傳回

一個可以用來設定屬性的物件。

備註

索引器屬性透過提供屬性名稱的 索引器 儲存在複雜型態中。

適用於

IndexerProperty<TProperty>(String)

來源:
ComplexCollectionBuilder.cs
來源:
ComplexCollectionBuilder.cs

回傳一個物件,可用來配置複雜型態的屬性。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionTypePropertyBuilder<TProperty> IndexerProperty<TProperty>(string propertyName);
abstract member IndexerProperty : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionTypePropertyBuilder<'Property>
override this.IndexerProperty : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionTypePropertyBuilder<'Property>
Public Overridable Function IndexerProperty(Of TProperty) (propertyName As String) As ComplexCollectionTypePropertyBuilder(Of TProperty)

類型參數

TProperty

要設定的財產類型。

參數

propertyName
String

要設定的物業名稱。

傳回

一個可以用來設定屬性的物件。

備註

索引器屬性透過提供屬性名稱的 索引器 儲存在複雜型態中。

適用於