ModelConfigurationBuilder.ComplexProperties 方法

定義

多載

ComplexProperties(Type)

將指定的和衍生型別標示為對應至複雜屬性。

ComplexProperties<TProperty>()

將指定的和衍生型別標示為對應至複雜屬性。

ComplexProperties(Type)

將指定的和衍生型別標示為對應至複雜屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder ComplexProperties (Type propertyType);
abstract member ComplexProperties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder
override this.ComplexProperties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder
Public Overridable Function ComplexProperties (propertyType As Type) As ComplexPropertiesConfigurationBuilder

參數

propertyType
Type

要設定的屬性類型。

傳回

可用來設定 屬性的物件。

備註

您也可以在介面或未系結的泛型型別上呼叫,以將組態套用至實作和建構型別的所有屬性。

如需詳細資訊和範例,請參閱 EF Core 中的預先慣例模型建 置。

適用於

ComplexProperties<TProperty>()

將指定的和衍生型別標示為對應至複雜屬性。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<TProperty> ComplexProperties<TProperty> ();
abstract member ComplexProperties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<'Property>
override this.ComplexProperties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<'Property>
Public Overridable Function ComplexProperties(Of TProperty) () As ComplexPropertiesConfigurationBuilder(Of TProperty)

類型參數

TProperty

要設定的屬性類型。

傳回

可用來設定屬性的物件。

備註

您也可以在介面上呼叫此設定,以將組態套用至實作類型的所有屬性。

如需詳細資訊和範例,請參閱 EF Core 中的預先慣例模型建 置。

適用於