共用方式為


IComplexType 介面

定義

表示結構型別之複雜屬性的類型。

public interface IComplexType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexType, Microsoft.EntityFrameworkCore.Metadata.ITypeBase
type IComplexType = interface
    interface IReadOnlyComplexType
    interface IReadOnlyTypeBase
    interface IReadOnlyAnnotatable
    interface ITypeBase
    interface IAnnotatable
Public Interface IComplexType
Implements IReadOnlyComplexType, ITypeBase
衍生
實作

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

ClrType

取得用來表示此型別實例的 CLR 類別。 null如果類型沒有對應的 CLR 類別, (稱為陰影類型) ,則傳回 。

在運行 DbContext 時間搭配 使用的模型中,目前不支援陰影類型。 因此,陰影類型只會存在於移轉模型快照集等中。

(繼承來源 ITypeBase)
ComplexProperty

取得相關聯的屬性。

ConstructorBinding

InstantiationBinding取得慣用建構函式的 。

(繼承來源 ITypeBase)
ContainingEntityType

取得這個實體類型,或宣告複雜屬性鏈結的實體類型。

(繼承來源 ITypeBase)
HasSharedClrType

取得這個實體類型是否可以與其他實體共用其 ClrType。

(繼承來源 ITypeBase)
IsPropertyBag

取得這個實體類型是否具有可包含任意屬性的索引子。

(繼承來源 ITypeBase)
Item[String]

取得具有指定名稱之注釋的值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
Model

取得這個類型所屬的模型。

(繼承來源 ITypeBase)
Name

取得這個型別的名稱。

(繼承來源 ITypeBase)

方法

AddRuntimeAnnotation(String, Object)

將執行時間批註新增至這個 物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有注釋的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
DisplayName()

取得這個結構化類型的易記顯示名稱。

(繼承來源 IReadOnlyTypeBase)
DisplayName(Boolean)

取得指定 IReadOnlyTypeBase 之 的易記顯示名稱。

(繼承來源 IReadOnlyTypeBase)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindComplexProperty(MemberInfo)

取得具有指定成員資訊的複雜屬性。 如果找不到任何屬性,則傳 null 回 。

(繼承來源 ITypeBase)
FindComplexProperty(String)

取得具有指定名稱的複雜屬性。 null如果未定義具有指定名稱的屬性,則傳回 。

(繼承來源 ITypeBase)
FindDeclaredComplexProperty(String)

尋找在具有指定名稱之型別上宣告的屬性。 不會傳回基底類型上定義的屬性。

(繼承來源 ITypeBase)
FindDeclaredProperty(String)

尋找在具有指定名稱之型別上宣告的屬性。 不會傳回基底類型上定義的屬性。

(繼承來源 ITypeBase)
FindIndexerPropertyInfo()

PropertyInfo如果關聯 CLR 類型存在,則傳回索引子的 。

(繼承來源 IReadOnlyTypeBase)
FindMember(String)

取得具有指定名稱的成員。 null如果未定義具有指定名稱的成員,則傳回 。

(繼承來源 ITypeBase)
FindMembersInHierarchy(String)

取得這個類型、基底類型或衍生型別上具有指定名稱的成員。

(繼承來源 ITypeBase)
FindProperties(IReadOnlyList<String>)

尋找指定類型的相符屬性。 如果找不到任何屬性,則傳 null 回 。

(繼承來源 ITypeBase)
FindProperty(MemberInfo)

取得指定型別上的屬性。 如果找不到任何屬性,則傳 null 回 。

(繼承來源 ITypeBase)
FindProperty(String)

取得具有指定名稱的屬性。 null如果未定義具有指定名稱的屬性,則傳回 。

(繼承來源 ITypeBase)
FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則 null 傳回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetChangeTrackingStrategy()

取得用於此類型的變更追蹤策略。 此策略指出內容如何偵測類型實例的屬性變更。

(繼承來源 IReadOnlyTypeBase)
GetComplexProperties()

取得這個實體類型上定義的複雜屬性。

(繼承來源 ITypeBase)
GetDeclaredComplexProperties()

取得這個實體類型上宣告的複雜屬性。

(繼承來源 ITypeBase)
GetDeclaredMembers()

取得在此類型上宣告的成員。

(繼承來源 ITypeBase)
GetDeclaredProperties()

取得在此類型上宣告的所有非導覽屬性。

(繼承來源 ITypeBase)
GetDerivedComplexProperties()

取得從這個實體類型衍生之型別上宣告的複雜屬性。

(繼承來源 ITypeBase)
GetDerivedProperties()

取得衍生自此類型之型別上宣告的所有非導覽屬性。

(繼承來源 ITypeBase)
GetFlattenedComplexProperties()

傳回實作 IComplexProperty 的所有屬性,包括複雜型別上的屬性。

(繼承來源 ITypeBase)
GetFlattenedDeclaredProperties()

傳回所有實 IProperty 作 的宣告屬性,包括複雜型別上的屬性。

(繼承來源 ITypeBase)
GetFlattenedProperties()

傳回實作 IProperty 的所有屬性,包括複雜型別上的屬性。

(繼承來源 ITypeBase)
GetMembers()

取得在這個型別和基底型別上定義的成員。

(繼承來源 ITypeBase)
GetNavigationAccessMode()

PropertyAccessMode取得用於這個型別導覽的 。

(繼承來源 IReadOnlyTypeBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間批註值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetProperties()

取得在此類型上定義的屬性。

(繼承來源 ITypeBase)
GetProperty(String)

取得具有指定名稱的屬性。

(繼承來源 ITypeBase)
GetPropertyAccessMode()

PropertyAccessMode取得用於這個類型之屬性和導覽的 。

(繼承來源 IReadOnlyTypeBase)
GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
GetSnapshottableMembers()

傳回變更追蹤時可能需要快照集值的所有成員。

(繼承來源 ITypeBase)
IsAbstract()

取得值,指出這個結構類型是否代表抽象型別。

(繼承來源 IReadOnlyTypeBase)
IsAssignableFrom(IReadOnlyTypeBase)

判斷此類型是否衍生自 (,或與指定類型) 相同。

(繼承來源 IReadOnlyTypeBase)
IsContainedBy(Type)

取得值,指出指定的型別是否為這個複雜型別的其中一個包含型別。

(繼承來源 IReadOnlyComplexType)
IsStrictlyDerivedFrom(IReadOnlyTypeBase)

判斷此類型是否衍生自 (,但與指定類型) 不同。

(繼承來源 IReadOnlyTypeBase)
RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵底下的執行時間批註。 如果具有指定名稱的注釋已經存在,則會覆寫現有的批註。

(繼承來源 IAnnotatable)
ShortName()

取得可用於其他識別碼之 的 IReadOnlyTypeBase 簡短名稱。

(繼承來源 IReadOnlyTypeBase)
ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:不要依賴傳回字串的格式。 它專為偵錯而設計,而且可能會在發行之間任意變更。

(繼承來源 IReadOnlyComplexType)

明確介面實作

ITypeBase.ContainingEntityType

取得宣告複雜屬性鏈結的實體類型。

擴充方法

GetContainerColumnName(IReadOnlyComplexType)

取得複雜型別所對應的容器資料行名稱。

FindMappingFragment(IReadOnlyTypeBase, StoreObjectIdentifier)

傳回特定類似資料表的存放區物件的型別對應。

這個方法通常由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

FindMappingFragment(ITypeBase, StoreObjectIdentifier)

傳回特定類似資料表的存放區物件的型別對應。

這個方法通常由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

GetContainerColumnName(IReadOnlyTypeBase)

取得類型所對應的容器資料行名稱。

GetDefaultMappings(ITypeBase)

傳回類型會使用的預設對應。

GetDeleteStoredProcedure(IReadOnlyTypeBase)

傳回型別要對應以進行刪除的預存程式, null 如果未對應至預存程式,則傳回該預存程式。

GetDeleteStoredProcedure(ITypeBase)

傳回型別要對應以進行刪除的預存程式, null 如果未對應至預存程式,則傳回該預存程式。

GetDeleteStoredProcedureMappings(ITypeBase)

傳回類型所對應的刪除預存程式。

GetFunctionMappings(ITypeBase)

傳回型別所對應的函式。

GetFunctionName(IReadOnlyTypeBase)

傳回型別所 null 對應之函式的名稱,如果不是對應至函式,則傳回該函式的名稱。

GetInsertStoredProcedure(IReadOnlyTypeBase)

傳回類型要對應以進行插入的預存程式, null 如果未對應至預存程式,則傳回該預存程式。

GetInsertStoredProcedure(ITypeBase)

傳回類型為插入 null 所對應的預存程式,如果未對應至預存程式,則傳回該預存程式。

GetInsertStoredProcedureMappings(ITypeBase)

傳回類型對應的插入預存程式。

GetJsonPropertyName(IReadOnlyTypeBase)

取得用於對應至 JSON 資料行之指定實體的 JSON 屬性名稱值。

GetMappingFragments(IReadOnlyTypeBase)

傳回所有已設定的類型對應片段。

這個方法通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

GetMappingFragments(IReadOnlyTypeBase, StoreObjectType)

傳回指定型別的所有已設定型別對應片段。

這個方法通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

GetMappingFragments(ITypeBase)

傳回所有已設定的類型對應片段。

這個方法通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

GetMappingFragments(ITypeBase, StoreObjectType)

傳回指定型別的所有已設定型別對應片段。

這個方法通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

GetMappingStrategy(IReadOnlyTypeBase)

取得衍生型別的對應策略。

GetSchema(IReadOnlyTypeBase)

傳回包含對應資料表的資料庫架構。

GetSqlQuery(IReadOnlyTypeBase)

傳回用來提供型 null 別資料的 SQL 字串,如果未對應至 SQL 字串,則傳回 。

GetSqlQueryMappings(ITypeBase)

傳回 SQL 字串對應。

GetTableMappings(ITypeBase)

傳回類型對應的資料表。

GetTableName(IReadOnlyTypeBase)

傳回類型所對應的 null 資料表名稱,如果未對應至資料表,則傳回該資料表的名稱。

GetUpdateStoredProcedure(IReadOnlyTypeBase)

傳回類型針對更新所對應的預存程式,如果未對應至預存程式,則 null 傳回預存程式。

GetUpdateStoredProcedure(ITypeBase)

傳回類型針對更新所對應的預存程式,如果未對應至預存程式,則 null 傳回預存程式。

GetUpdateStoredProcedureMappings(ITypeBase)

傳回型別對應的更新預存程式。

GetViewMappings(ITypeBase)

傳回類型對應的檢視。

GetViewName(IReadOnlyTypeBase)

傳回類型所對應的 null 檢視名稱,如果未對應至檢視,則傳回該檢視的名稱。

GetViewSchema(IReadOnlyTypeBase)

傳回包含對應檢視的資料庫架構。

IsMappedToJson(IReadOnlyTypeBase)

取得值,指出指定的實體是否對應至 JSON 資料行。

適用於