語言

ComplexPropertyBuilder.ComplexCollection 方法

定義

多載

名稱 Description
ComplexCollection(String)

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

ComplexCollection(String, Action<ComplexCollectionBuilder>)

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

ComplexCollection(Type, String)

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

ComplexCollection(Type, String, Action<ComplexCollectionBuilder>)

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

ComplexCollection(Type, String, String)

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

ComplexCollection(Type, String, String, Action<ComplexCollectionBuilder>)

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

ComplexCollection<TProperty,TElement>(String)

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

ComplexCollection<TProperty,TElement>(String, Action<ComplexCollectionBuilder<TElement>>)

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

ComplexCollection<TProperty,TElement>(String, String)

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

ComplexCollection<TProperty,TElement>(String, String, Action<ComplexCollectionBuilder<TElement>>)

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

ComplexCollection(String)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(string propertyName);
abstract member ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyName As String) As ComplexCollectionBuilder

參數

propertyName
String

要設定的物業名稱。

傳回

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

備註

新增帶有此過載的屬性時,屬性名稱必須與複雜型態中 CLR 屬性或欄位的名稱相符。 此過載無法用來新增陰影狀態複體屬性。

適用於

ComplexCollection(String, Action<ComplexCollectionBuilder>)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder ComplexCollection(string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> buildAction);
abstract member ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function ComplexCollection (propertyName As String, buildAction As Action(Of ComplexCollectionBuilder)) As ComplexPropertyBuilder

參數

propertyName
String

要設定的物業名稱。

buildAction
Action<ComplexCollectionBuilder>

一個執行屬性配置的動作。

傳回

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

備註

新增帶有此過載的屬性時,屬性名稱必須與複雜型態中 CLR 屬性或欄位的名稱相符。 此過載無法用來新增陰影狀態複體屬性。

適用於

ComplexCollection(Type, String)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

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

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

參數

propertyType
Type

要設定的財產類型。

propertyName
String

要設定的物業名稱。

傳回

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

備註

新增複數屬性時,若複數類別中有同名屬性,則該物件會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection(Type, String, Action<ComplexCollectionBuilder>)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder ComplexCollection(Type propertyType, string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> buildAction);
abstract member ComplexCollection : Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.ComplexCollection : Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function ComplexCollection (propertyType As Type, propertyName As String, buildAction As Action(Of ComplexCollectionBuilder)) As ComplexPropertyBuilder

參數

propertyType
Type

要設定的財產類型。

propertyName
String

要設定的物業名稱。

buildAction
Action<ComplexCollectionBuilder>

一個執行屬性配置的動作。

傳回

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

備註

新增複數屬性時,若複數類別中有同名屬性,則該物件會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection(Type, String, String)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

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

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

參數

propertyType
Type

要設定的財產類型。

propertyName
String

要設定的物業名稱。

complexTypeName
String

複雜類型的名稱。

傳回

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

備註

新增複數屬性時,若複數類別中有同名屬性,則該物件會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection(Type, String, String, Action<ComplexCollectionBuilder>)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder ComplexCollection(Type propertyType, string propertyName, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> buildAction);
abstract member ComplexCollection : Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.ComplexCollection : Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function ComplexCollection (propertyType As Type, propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexCollectionBuilder)) As ComplexPropertyBuilder

參數

propertyType
Type

要設定的財產類型。

propertyName
String

要設定的物業名稱。

complexTypeName
String

複雜類型的名稱。

buildAction
Action<ComplexCollectionBuilder>

一個執行屬性配置的動作。

傳回

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

備註

新增複數屬性時,若複數類別中有同名屬性,則該物件會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection<TProperty,TElement>(String)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement> ComplexCollection<TProperty,TElement>(string propertyName) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String) As ComplexCollectionBuilder(Of TElement)

類型參數

TProperty

要設定的財產類型。

TElement

元素類型。

參數

propertyName
String

要設定的物業名稱。

傳回

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

備註

新增屬性時,如果複合類別中存在同名屬性,則該屬性會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection<TProperty,TElement>(String, Action<ComplexCollectionBuilder<TElement>>)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder ComplexCollection<TProperty,TElement>(string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement>> buildAction) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String, buildAction As Action(Of ComplexCollectionBuilder(Of TElement))) As ComplexPropertyBuilder

類型參數

TProperty

要設定的財產類型。

TElement

元素類型。

參數

propertyName
String

要設定的物業名稱。

buildAction
Action<ComplexCollectionBuilder<TElement>>

一個執行屬性配置的動作。

傳回

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

備註

新增屬性時,如果複合類別中存在同名屬性,則該屬性會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection<TProperty,TElement>(String, String)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement> ComplexCollection<TProperty,TElement>(string propertyName, string complexTypeName) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
override this.ComplexCollection : string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String, complexTypeName As String) As ComplexCollectionBuilder(Of TElement)

類型參數

TProperty

要設定的財產類型。

TElement

元素類型。

參數

propertyName
String

要設定的物業名稱。

complexTypeName
String

複雜類型的名稱。

傳回

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

備註

新增屬性時,如果複合類別中存在同名屬性,則該屬性會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於

ComplexCollection<TProperty,TElement>(String, String, Action<ComplexCollectionBuilder<TElement>>)

來源:
ComplexPropertyBuilder.cs
來源:
ComplexPropertyBuilder.cs

配置一個複數類型的複集合。 若不存在帶有該名稱的屬性,則會新增一個屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder ComplexCollection<TProperty,TElement>(string propertyName, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement>> buildAction) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.ComplexCollection : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexCollectionBuilder(Of TElement))) As ComplexPropertyBuilder

類型參數

TProperty

要設定的財產類型。

TElement

元素類型。

參數

propertyName
String

要設定的物業名稱。

complexTypeName
String

複雜類型的名稱。

buildAction
Action<ComplexCollectionBuilder<TElement>>

一個執行屬性配置的動作。

傳回

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

備註

新增屬性時,如果複合類別中存在同名屬性,則該屬性會被加入模型中。 若複數類別中不存在性質,則會新增一個影子狀態複數性質。 影子狀態性質是指在複數類別中沒有對應性質的性質。 屬性的當前值會儲存在 中 ChangeTracker ,而非存放在複雜類別的實例中。

適用於