ModelConfigurationBuilder.ComplexProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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中的大會前模型建構 。