IMutableComplexType 介面

定義

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

public interface IMutableComplexType : Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexType
type IMutableComplexType = interface
    interface IReadOnlyComplexType
    interface IReadOnlyTypeBase
    interface IReadOnlyAnnotatable
    interface IMutableTypeBase
    interface IMutableAnnotatable
Public Interface IMutableComplexType
Implements IMutableTypeBase, IReadOnlyComplexType
實作

備註

此介面會在模型建立期間使用,並允許修改中繼資料。 建置模型之後, IComplexProperty 表示相同中繼資料的唯讀檢視。

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

屬性

ClrType

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

(繼承來源 IReadOnlyTypeBase)
ComplexProperty

取得相關聯的屬性。

ContainingEntityType

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

(繼承來源 IReadOnlyTypeBase)
HasSharedClrType

取得值,指出這個結構型別是否對應至 Type 其他結構型別也對應的 。

(繼承來源 IReadOnlyTypeBase)
IsPropertyBag

取得值,指出這個結構類型是否有索引子,其能夠包含任意屬性,以及可用來判斷指定索引子屬性是否包含值的方法。

(繼承來源 IReadOnlyTypeBase)
Item[String]

取得或設定具有指定名稱之注釋的值。

(繼承來源 IMutableAnnotatable)
Model

取得此類型所屬的模型。

(繼承來源 IReadOnlyTypeBase)
Name

取得這個型別的名稱。

(繼承來源 IReadOnlyTypeBase)

方法

AddAnnotation(String, Object)

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IMutableAnnotatable)
AddAnnotations(IEnumerable<IAnnotation>)

將批註加入物件。

(繼承來源 IMutableAnnotatable)
AddComplexIndexerProperty(String, Type, Type, String, Boolean)

將索引子所備份的複雜屬性新增至此類型。

(繼承來源 IMutableTypeBase)
AddComplexProperty(MemberInfo, String, Boolean)

將複雜屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddComplexProperty(String, Boolean)

將複雜屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean)

將複雜屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddComplexProperty(String, Type, Type, String, Boolean)

將複雜屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddIgnored(String)

將指定的成員名稱標示為忽略,防止慣例將相符的屬性或導覽新增至類型。

(繼承來源 IMutableTypeBase)
AddIndexerProperty(String, Type)

將索引子所備份的屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddProperty(MemberInfo)

將屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddProperty(String)

將屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddProperty(String, Type)

將屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AddProperty(String, Type, MemberInfo)

將屬性加入至此類型。

(繼承來源 IMutableTypeBase)
AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
DisplayName()

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

(繼承來源 IReadOnlyTypeBase)
DisplayName(Boolean)

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

(繼承來源 IReadOnlyTypeBase)
FindAnnotation(String)

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

(繼承來源 IMutableAnnotatable)
FindComplexProperty(MemberInfo)

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

(繼承來源 IReadOnlyTypeBase)
FindComplexProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
FindDeclaredComplexProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
FindDeclaredProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
FindIndexerPropertyInfo()

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

(繼承來源 IReadOnlyTypeBase)
FindMember(String)

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

(繼承來源 IReadOnlyTypeBase)
FindMembersInHierarchy(String)

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

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

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

(繼承來源 IReadOnlyTypeBase)
FindProperty(MemberInfo)

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

(繼承來源 IReadOnlyTypeBase)
FindProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IMutableAnnotatable)
GetChangeTrackingStrategy()

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

(繼承來源 IReadOnlyTypeBase)
GetComplexProperties()

取得在這個型別和基底型別上定義的複雜屬性。

(繼承來源 IReadOnlyTypeBase)
GetDeclaredComplexProperties()

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

(繼承來源 IReadOnlyTypeBase)
GetDeclaredMembers()

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

(繼承來源 IReadOnlyTypeBase)
GetDeclaredProperties()

取得在此類型上宣告的所有純量屬性。

(繼承來源 IReadOnlyTypeBase)
GetDerivedComplexProperties()

取得衍生自這個型別之型別上宣告的複雜屬性。

(繼承來源 IReadOnlyTypeBase)
GetDerivedProperties()

取得衍生自此型別之型別上宣告的所有純量屬性。

(繼承來源 IReadOnlyTypeBase)
GetIgnoredMembers()

取得所有忽略的成員。

(繼承來源 IMutableTypeBase)
GetMembers()

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

(繼承來源 IReadOnlyTypeBase)
GetNavigationAccessMode()

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

(繼承來源 IReadOnlyTypeBase)
GetProperties()

取得在這個類型上定義的所有純量屬性。

(繼承來源 IReadOnlyTypeBase)
GetProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
GetPropertyAccessMode()

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

(繼承來源 IReadOnlyTypeBase)
IsAbstract()

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

(繼承來源 IReadOnlyTypeBase)
IsAssignableFrom(IReadOnlyTypeBase)

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

(繼承來源 IReadOnlyTypeBase)
IsContainedBy(Type)

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

(繼承來源 IReadOnlyComplexType)
IsIgnored(String)

指出是否忽略指定的成員名稱。

(繼承來源 IMutableTypeBase)
IsStrictlyDerivedFrom(IReadOnlyTypeBase)

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

(繼承來源 IReadOnlyTypeBase)
RemoveAnnotation(String)

從這個 物件中移除指定的注釋。

(繼承來源 IMutableAnnotatable)
RemoveComplexProperty(IReadOnlyProperty)

從這個類型移除屬性。

(繼承來源 IMutableTypeBase)
RemoveComplexProperty(String)

從這個類型移除屬性。

(繼承來源 IMutableTypeBase)
RemoveIgnored(String)

移除忽略的成員名稱。

(繼承來源 IMutableTypeBase)
RemoveProperty(IReadOnlyProperty)

從這個類型移除屬性。

(繼承來源 IMutableTypeBase)
RemoveProperty(String)

從這個類型移除屬性。

(繼承來源 IMutableTypeBase)
SetAnnotation(String, Object)

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

(繼承來源 IMutableAnnotatable)
SetChangeTrackingStrategy(Nullable<ChangeTrackingStrategy>)

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

(繼承來源 IMutableTypeBase)
SetNavigationAccessMode(Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於巡覽這個實體型別的 。

(繼承來源 IMutableTypeBase)
SetOrRemoveAnnotation(String, Object)

設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 如果 null 已提供,則移除現有的批註。

(繼承來源 IMutableAnnotatable)
SetPropertyAccessMode(Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於這個型別之屬性和導覽的 。

(繼承來源 IMutableTypeBase)
ShortName()

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

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

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

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

(繼承來源 IReadOnlyComplexType)

擴充方法

GetContainerColumnName(IReadOnlyComplexType)

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

FindMappingFragment(IReadOnlyTypeBase, StoreObjectIdentifier)

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

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

GetContainerColumnName(IReadOnlyTypeBase)

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

GetDeleteStoredProcedure(IReadOnlyTypeBase)

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

GetFunctionName(IReadOnlyTypeBase)

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

GetInsertStoredProcedure(IReadOnlyTypeBase)

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

GetJsonPropertyName(IReadOnlyTypeBase)

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

GetMappingFragments(IReadOnlyTypeBase)

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

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

GetMappingFragments(IReadOnlyTypeBase, StoreObjectType)

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

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

GetMappingStrategy(IReadOnlyTypeBase)

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

GetSchema(IReadOnlyTypeBase)

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

GetSqlQuery(IReadOnlyTypeBase)

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

GetTableName(IReadOnlyTypeBase)

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

GetUpdateStoredProcedure(IReadOnlyTypeBase)

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

GetViewName(IReadOnlyTypeBase)

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

GetViewSchema(IReadOnlyTypeBase)

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

IsMappedToJson(IReadOnlyTypeBase)

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

適用於