RuntimeComplexType 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示結構型別之複雜屬性的類型。
public class RuntimeComplexType : Microsoft.EntityFrameworkCore.Metadata.RuntimeTypeBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeComplexType
type RuntimeComplexType = class
inherit RuntimeTypeBase
interface IRuntimeComplexType
interface IComplexType
interface IReadOnlyComplexType
interface IReadOnlyTypeBase
interface IReadOnlyAnnotatable
interface ITypeBase
interface IAnnotatable
interface IRuntimeTypeBase
Public Class RuntimeComplexType
Inherits RuntimeTypeBase
Implements IRuntimeComplexType
- 繼承
- 實作
-
IAnnotatable IReadOnlyAnnotatable IComplexType Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeComplexType Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeTypeBase IReadOnlyComplexType IReadOnlyTypeBase ITypeBase
備註
如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。
建構函式
RuntimeComplexType(String, Type, RuntimeComplexProperty, ChangeTrackingStrategy, PropertyInfo, Boolean) |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
屬性
BaseType |
取得這個型別的基底類型 (Base Type)。 |
ClrType |
取得 CLR 類別,這個類別用來表示這個類型的實例。
|
ComplexProperty |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
ConstructorBinding |
取得或設定 InstantiationBinding 慣用建構函式的 。 |
DebugView |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
DirectlyDerivedTypes |
取得模型中直接衍生自此型別的所有型別。 (繼承來源 RuntimeTypeBase) |
IsReadOnly |
指出目前物件是否為唯讀。 (繼承來源 AnnotatableBase) |
Item[String] |
取得具有指定名稱的值批註,如果不存在,則傳 |
Model |
取得此類型所屬的模型。 (繼承來源 RuntimeTypeBase) |
Name |
取得這個型別的名稱。 (繼承來源 RuntimeTypeBase) |
Properties |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 (繼承來源 RuntimeTypeBase) |
ServiceOnlyConstructorBinding |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
方法
AddAnnotation(String, Annotation) |
將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。 (繼承來源 AnnotatableBase) |
AddAnnotation(String, Object) |
將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。 (繼承來源 AnnotatableBase) |
AddAnnotations(IEnumerable<IAnnotation>) |
將批註加入至這個物件。 (繼承來源 AnnotatableBase) |
AddAnnotations(IReadOnlyDictionary<String,Object>) |
將批註加入至這個物件。 (繼承來源 AnnotatableBase) |
AddComplexProperty(String, Type, String, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean, ChangeTrackingStrategy, PropertyInfo, Boolean) |
將複雜屬性加入至這個實體類型。 (繼承來源 RuntimeTypeBase) |
AddProperty(String, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean, ValueGenerated, PropertySaveBehavior, PropertySaveBehavior, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Type, Func<IProperty,ITypeBase,ValueGenerator>, ValueConverter, ValueComparer, ValueComparer, ValueComparer, JsonValueReaderWriter, CoreTypeMapping, Object) |
將屬性加入至這個實體類型。 (繼承來源 RuntimeTypeBase) |
AddRuntimeAnnotation(String, Annotation) |
將執行時間批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。 (繼承來源 AnnotatableBase) |
AddRuntimeAnnotation(String, Object) |
將執行時間批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。 (繼承來源 AnnotatableBase) |
AddRuntimeAnnotations(IEnumerable<Annotation>) |
將執行時間批註加入至這個物件。 (繼承來源 AnnotatableBase) |
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>) |
將執行時間批註加入至這個物件。 (繼承來源 AnnotatableBase) |
CreateAnnotation(String, Object) |
建立新的批註。 (繼承來源 AnnotatableBase) |
CreateRuntimeAnnotation(String, Object) |
建立新的執行時間批註。 (繼承來源 AnnotatableBase) |
EnsureMutable() |
如果模型是唯讀的,則會擲回 。 (繼承來源 AnnotatableBase) |
EnsureReadOnly() |
如果模型不是唯讀,則會擲回 。 (繼承來源 AnnotatableBase) |
FindAnnotation(String) |
取得具有指定名稱的注釋,如果不存在,則傳 |
FindComplexPropertiesInHierarchy(String) |
取得此類型、基底類型或衍生型別上具有指定名稱的複雜屬性。 (繼承來源 RuntimeTypeBase) |
FindComplexProperty(String) |
取得具有指定名稱的複雜屬性。 如果未定義具有指定名稱的屬性,則傳 |
FindDeclaredProperty(String) |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 (繼承來源 RuntimeTypeBase) |
FindIndexerPropertyInfo() |
PropertyInfo如果存在,則會傳回相關聯 CLR 類型上索引子的 。 (繼承來源 RuntimeTypeBase) |
FindMember(String) |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
FindMembersInHierarchy(String) |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
FindProperties(IEnumerable<String>) |
在指定的實體類型上尋找相符的屬性。 如果找不到任何屬性,則傳 |
FindPropertiesInHierarchy(String) |
取得具有這個類型、基底類型或衍生型別之指定名稱的屬性。 (繼承來源 RuntimeTypeBase) |
FindProperty(String) |
取得具有指定名稱的屬性。 如果未定義具有指定名稱的屬性,則傳 |
FindRuntimeAnnotation(String) |
取得具有指定名稱的執行時間批註,如果不存在,則傳 |
GetAnnotation(String) |
取得具有指定名稱的注釋,如果不存在,則會擲回。 (繼承來源 AnnotatableBase) |
GetAnnotations() |
取得目前 物件上的所有批註。 (繼承來源 AnnotatableBase) |
GetComplexProperties() |
取得在這個類型上定義的複雜屬性。 (繼承來源 RuntimeTypeBase) |
GetDeclaredComplexProperties() |
取得在這個類型上宣告的複雜屬性。 (繼承來源 RuntimeTypeBase) |
GetDeclaredMembers() |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
GetDeclaredProperties() |
取得在此類型上宣告的所有純量屬性。 (繼承來源 RuntimeTypeBase) |
GetDerivedTypes() |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 (繼承來源 RuntimeTypeBase) |
GetDerivedTypes<T>() |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 (繼承來源 RuntimeTypeBase) |
GetFlattenedComplexProperties() |
傳回此型別的所有 RuntimeComplexProperty 成員,以及所有巢狀複雜型別,如果有的話。 (繼承來源 RuntimeTypeBase) |
GetFlattenedDeclaredProperties() |
傳回此型別的所有 IProperty 成員,以及所有巢狀複雜型別,如果有的話。 (繼承來源 RuntimeTypeBase) |
GetFlattenedProperties() |
傳回此型別的所有 IProperty 成員,以及所有巢狀複雜型別,如果有的話。 (繼承來源 RuntimeTypeBase) |
GetMembers() |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg) |
取得具有指定名稱的執行時間注釋值,如果不存在,請加以新增。 (繼承來源 AnnotatableBase) |
GetProperties() |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 (繼承來源 RuntimeTypeBase) |
GetRuntimeAnnotations() |
取得目前 物件上的所有執行時間批註。 (繼承來源 AnnotatableBase) |
GetSnapshottableMembers() |
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。 |
OnAnnotationSet(String, Annotation, Annotation) |
設定或移除批註時呼叫。 (繼承來源 AnnotatableBase) |
RemoveAnnotation(String) |
從這個 物件中移除指定的注釋。 (繼承來源 AnnotatableBase) |
RemoveRuntimeAnnotation(String) |
從這個 物件中移除指定的執行時間批註。 (繼承來源 AnnotatableBase) |
SetAnnotation(String, Annotation, Annotation) |
設定儲存在指定索引鍵底下的注釋。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 (繼承來源 AnnotatableBase) |
SetAnnotation(String, Object) |
設定儲存在指定索引鍵底下的注釋。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 (繼承來源 AnnotatableBase) |
SetRuntimeAnnotation(String, Annotation, Annotation) |
設定儲存在指定索引鍵下的執行時間批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 (繼承來源 AnnotatableBase) |
SetRuntimeAnnotation(String, Object) |
設定儲存在指定索引鍵下的執行時間批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 (繼承來源 AnnotatableBase) |
ToString() |
傳回代表目前物件的字串。 |