ConventionEntityTypeExtensions 類別

定義

警告

Use IConventionEntityType

IConventionEntityType 的擴充方法。

public static class ConventionEntityTypeExtensions
[System.Obsolete("Use IConventionEntityType")]
public static class ConventionEntityTypeExtensions
type ConventionEntityTypeExtensions = class
[<System.Obsolete("Use IConventionEntityType")>]
type ConventionEntityTypeExtensions = class
Public Module ConventionEntityTypeExtensions
繼承
ConventionEntityTypeExtensions
屬性

方法

AddForeignKey(IConventionEntityType, IConventionProperty, IConventionKey, IConventionEntityType, Boolean)
已淘汰.

將新的關聯性加入至這個實體類型。

AddIndex(IConventionEntityType, IConventionProperty, Boolean)
已淘汰.

將索引加入至這個實體類型。

AddIndexerProperty(IConventionEntityType, String, Type, Boolean, Boolean)
已淘汰.

將 和 索引子所支援的屬性加入至這個實體類型。

AddKey(IConventionEntityType, IConventionProperty, Boolean)
已淘汰.

將新的替代索引鍵新增至這個實體類型。

AddProperty(IConventionEntityType, MemberInfo, Boolean)
已淘汰.

將屬性加入至這個實體類型。

AddProperty(IConventionEntityType, String, Boolean)
已淘汰.

將屬性加入至這個實體類型。

AddProperty(IConventionEntityType, String, Type, Boolean, Boolean)
已淘汰.

將屬性加入至這個實體類型。

FindDeclaredForeignKeys(IConventionEntityType, IReadOnlyList<IProperty>)
已淘汰.

取得使用指定屬性在指定的 IConventionEntityType 上宣告的外鍵。

FindDeclaredNavigation(IConventionEntityType, String)
已淘汰.

取得指定實體類型的導覽屬性。 不會傳回基底類型上定義的導覽屬性。 如果找不到導覽屬性,則傳 null 回 。

FindDeclaredProperty(IConventionEntityType, String)
已淘汰.

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

FindDefiningNavigation(IConventionEntityType)
已淘汰.

如果存在, null 則傳回定義導覽。

FindForeignKey(IConventionEntityType, IProperty, IKey, IEntityType)
已淘汰.

取得指向指定主要或替代索引鍵之指定屬性的外鍵。 如果找不到外鍵,則傳 null 回 。

FindForeignKeys(IConventionEntityType, IProperty)
已淘汰.

取得在指定屬性上定義的外鍵。 只會傳回在確切指定屬性上定義的外鍵。 不會傳回包含指定屬性的複合外鍵。

FindForeignKeys(IConventionEntityType, IReadOnlyList<IProperty>)
已淘汰.

取得在指定屬性上定義的外鍵。 只會傳回在確切指定之屬性集上定義的外鍵。

FindIndex(IConventionEntityType, IProperty)
已淘汰.

取得在指定屬性上定義的未命名索引。 null如果未定義這類索引,則傳回 。

即使屬性清單相符,也不會傳回具名索引。

FindKey(IConventionEntityType, IProperty)
已淘汰.

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

FindNavigation(IConventionEntityType, MemberInfo)
已淘汰.

取得指定實體類型的導覽屬性。 如果找不到導覽屬性,則傳 null 回 。

FindNavigation(IConventionEntityType, String)
已淘汰.

取得指定實體類型的導覽屬性。 如果找不到導覽屬性,則傳 null 回 。

FindOwnership(IConventionEntityType)
已淘汰.

如果這是擁有的類型 null ,則傳回與擁有者的關聯性,否則傳回。

FindProperties(IConventionEntityType, IReadOnlyList<String>)
已淘汰.

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

此 API 只會尋找純量屬性,而且找不到導覽屬性。

FindProperty(IConventionEntityType, MemberInfo)
已淘汰.

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

此 API 只會尋找純量屬性,而且找不到導覽屬性。 用來 FindNavigation(IConventionEntityType, MemberInfo) 尋找導覽屬性。

GetAllBaseTypes(IConventionEntityType)
已淘汰.

從根開始,取得指定實體類型衍生自模型中的所有類型。

GetAllBaseTypesAscending(IConventionEntityType)
已淘汰.

從最接近的實體類型開始,取得模型中衍生自的所有型別。

GetAllBaseTypesInclusive(IConventionEntityType)
已淘汰.

傳回指定 IEntityType 的所有基底類型,包括型別本身、由上至下。

GetAllBaseTypesInclusiveAscending(IConventionEntityType)
已淘汰.

傳回指定 IEntityType 的所有基底類型,包括型別本身、由下到上。

GetChangeTrackingStrategyConfigurationSource(IConventionEntityType)
已淘汰.

傳回 的 GetChangeTrackingStrategy(IEntityType) 組態來源。

GetDeclaredForeignKeys(IConventionEntityType)
已淘汰.

取得指定 IConventionEntityType 上宣告的所有外鍵。

這個方法不會傳回在基底類型上宣告的外鍵。 在逐一查看所有實體類型時,可避免多次處理相同的外鍵。 使用 GetForeignKeys() 也傳回在基底類型上宣告的外鍵。

GetDeclaredIndexes(IConventionEntityType)
已淘汰.

取得在指定 IConventionEntityType 上宣告的所有索引。

這個方法不會傳回在基底類型上宣告的索引。 在逐一查看所有實體類型時,它很有用,以避免多次處理相同的索引。 使用 GetForeignKeys() 也傳回在基底類型上宣告的索引。

GetDeclaredKeys(IConventionEntityType)
已淘汰.

取得指定 IEntityType 上宣告的所有索引鍵。

這個方法不會傳回在基底類型上宣告的索引鍵。 逐一查看所有實體類型時,可避免多次處理相同的索引鍵。 使用 GetKeys() 也會傳回在基底類型上宣告的索引鍵。

GetDeclaredNavigations(IConventionEntityType)
已淘汰.

取得在指定 IConventionEntityType 上宣告的所有導覽屬性。

這個方法不會傳回在基底類型上宣告的導覽屬性。 逐一查看所有實體類型,以避免多次處理相同的導覽屬性時,它很有用。 使用 GetNavigations(IConventionEntityType) 也會傳回在基底類型上宣告的導覽屬性。

GetDeclaredProperties(IConventionEntityType)
已淘汰.

取得指定 IConventionEntityType 上宣告的所有非導覽屬性。

這個方法不會傳回在基底類型上宣告的屬性。 逐一查看所有實體類型時,可避免多次處理相同的屬性。 使用 GetProperties() 也會傳回基底類型上宣告的屬性。

GetDeclaredReferencingForeignKeys(IConventionEntityType)
已淘汰.

取得以指定實體類型為目標的所有外鍵 (,也就是指定實體類型為主體) 的外鍵。

GetDeclaredServiceProperties(IConventionEntityType)
已淘汰.

取得在指定 IConventionEntityType 上宣告的所有服務屬性。

這個方法不會傳回在基底類型上宣告的屬性。 逐一查看所有實體類型時,可避免多次處理相同的屬性。 使用 GetServiceProperties() 也會傳回基底類型上宣告的屬性。

GetDefiningQueryConfigurationSource(IConventionEntityType)
已淘汰.

傳回 的 GetDefiningQuery(IEntityType) 組態來源。

GetDerivedForeignKeys(IConventionEntityType)
已淘汰.

取得衍生自指定 IConventionEntityType 之 型別上宣告的所有外鍵。

這個方法不會傳回在指定實體類型本身上宣告的外鍵。 使用 GetForeignKeys() 傳回在此 和基底實體類型上宣告的外鍵。

GetDerivedTypes(IConventionEntityType)
已淘汰.

取得衍生自指定實體類型之模型中的所有類型。

GetDerivedTypesInclusive(IConventionEntityType)
已淘汰.

傳回指定 IConventionEntityType 的所有衍生型別,包括型別本身。

GetDirectlyDerivedTypes(IConventionEntityType)
已淘汰.

取得模型中直接衍生自指定實體型別的所有類型。

GetDiscriminatorMappingCompleteConfigurationSource(IConventionEntityType)
已淘汰.

ConfigurationSource取得辨別子值完整性的 。

GetDiscriminatorProperty(IConventionEntityType)
已淘汰.

IConventionProperty 回將用於儲存鑒別子值的 。

GetDiscriminatorPropertyConfigurationSource(IConventionEntityType)
已淘汰.

ConfigurationSource取得辨別子屬性的 。

GetDiscriminatorValueConfigurationSource(IConventionEntityType)
已淘汰.

ConfigurationSource取得辨別子值的 。

GetNavigations(IConventionEntityType)
已淘汰.

取得指定實體類型上的所有導覽屬性。

GetQueryFilterConfigurationSource(IConventionEntityType)
已淘汰.

傳回 的 GetQueryFilter(IEntityType) 組態來源。

GetReferencingForeignKeys(IConventionEntityType)
已淘汰.

取得以指定實體類型為目標的所有外鍵 (,亦即,指定實體類型或其衍生來源類型的外鍵是主體) 。

GetRootType(IConventionEntityType)
已淘汰.

取得指定實體類型的根基底類型。

RemoveDiscriminatorValue(IConventionEntityType)
已淘汰.

移除這個實體類型的辨別子值。

RemoveForeignKey(IConventionEntityType, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionEntityType)
已淘汰.

從這個實體類型移除外鍵。

RemoveIndex(IConventionEntityType, IReadOnlyList<IConventionProperty>)
已淘汰.

從這個實體類型移除索引。

RemoveKey(IConventionEntityType, IReadOnlyList<IConventionProperty>)
已淘汰.

從這個實體類型中移除主要或替代索引鍵。

RemoveProperty(IConventionEntityType, String)
已淘汰.

從這個實體類型移除屬性。

RootType(IConventionEntityType)
已淘汰.

取得指定實體類型的根基底類型。

SetChangeTrackingStrategy(IConventionEntityType, Nullable<ChangeTrackingStrategy>, Boolean)
已淘汰.

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

SetDefiningQuery(IConventionEntityType, LambdaExpression, Boolean)
已淘汰.

設定 LINQ 查詢作為此類型查詢的預設來源。

SetDiscriminatorMappingComplete(IConventionEntityType, Nullable<Boolean>, Boolean)
已淘汰.

設定值,指出辨別子對應是否完成。

SetDiscriminatorProperty(IConventionEntityType, IProperty, Boolean)
已淘汰.

IProperty設定將用於儲存鑒別子值的 。

SetDiscriminatorValue(IConventionEntityType, Object, Boolean)
已淘汰.

設定這個實體類型的辨別子值。

SetPrimaryKey(IConventionEntityType, IConventionProperty, Boolean)
已淘汰.

設定這個實體類型的主鍵。

SetQueryFilter(IConventionEntityType, LambdaExpression, Boolean)
已淘汰.

設定自動套用至此實體類型的查詢的 LINQ 運算式篩選。

適用於