IConventionTypeBaseBuilder.ComplexIndexerProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回物件,這個物件可用來設定具有指定名稱的複雜索引子屬性。 如果沒有相符的屬性存在,則會加入新的屬性。
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexIndexerProperty (Type propertyType, string propertyName, Type? complexType, bool fromDataAnnotation = false);
abstract member ComplexIndexerProperty : Type * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexIndexerProperty (propertyType As Type, propertyName As String, complexType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder
參數
- propertyType
- Type
屬性將保留的數值型別。
- propertyName
- String
要設定的屬性名稱。
- complexType
- Type
目標複雜類型。
- fromDataAnnotation
- Boolean
指出是否已使用資料批註指定組態。
傳回
物件,如果屬性存在於類型上,則可用來設定屬性, null
否則為 。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應