MutableEntityTypeExtensions 類別

定義

警告

Use IMutableEntityType

IMutableEntityType 的擴充方法。

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

方法

AddForeignKey(IMutableEntityType, IMutableProperty, IMutableKey, IMutableEntityType)
已淘汰.

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

AddIndex(IMutableEntityType, IMutableProperty)
已淘汰.

將索引加入至此實體類型。

AddIndexerProperty(IMutableEntityType, String, Type)
已淘汰.

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

AddKey(IMutableEntityType, IMutableProperty)
已淘汰.

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

AddProperty(IMutableEntityType, MemberInfo)
已淘汰.

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

AddProperty(IMutableEntityType, PropertyInfo)
已淘汰.

將屬性加入至此實體。

AddProperty(IMutableEntityType, String)
已淘汰.

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

AddProperty(IMutableEntityType, String, Type)
已淘汰.

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

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

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

FindDeclaredNavigation(IMutableEntityType, String)
已淘汰.

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

FindDeclaredProperty(IMutableEntityType, String)
已淘汰.

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

FindDefiningNavigation(IMutableEntityType)
已淘汰.

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

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

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

FindForeignKeys(IMutableEntityType, IProperty)
已淘汰.

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

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

取得在指定屬性上定義的外鍵。 只會傳回剛好在指定屬性集上定義的外鍵。

FindIndex(IMutableEntityType, IProperty)
已淘汰.

取得在指定屬性上定義的索引。 如果未定義任何索引,則傳回 null。

FindKey(IMutableEntityType, IProperty)
已淘汰.

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

FindNavigation(IMutableEntityType, MemberInfo)
已淘汰.

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

FindNavigation(IMutableEntityType, PropertyInfo)
已淘汰.

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

FindNavigation(IMutableEntityType, String)
已淘汰.

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

FindOwnership(IMutableEntityType)
已淘汰.

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

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

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

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

FindProperty(IMutableEntityType, PropertyInfo)
已淘汰.

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

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

GetAllBaseTypes(IMutableEntityType)
已淘汰.

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

GetAllBaseTypesAscending(IMutableEntityType)
已淘汰.

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

GetDeclaredForeignKeys(IMutableEntityType)
已淘汰.

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

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

GetDeclaredIndexes(IMutableEntityType)
已淘汰.

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

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

GetDeclaredKeys(IMutableEntityType)
已淘汰.

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

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

GetDeclaredNavigations(IMutableEntityType)
已淘汰.

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

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

GetDeclaredProperties(IMutableEntityType)
已淘汰.

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

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

GetDeclaredReferencingForeignKeys(IMutableEntityType)
已淘汰.

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

GetDeclaredServiceProperties(IMutableEntityType)
已淘汰.

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

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

GetDerivedForeignKeys(IMutableEntityType)
已淘汰.

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

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

GetDerivedTypes(IMutableEntityType)
已淘汰.

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

GetDerivedTypesInclusive(IMutableEntityType)
已淘汰.

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

GetDirectlyDerivedTypes(IMutableEntityType)
已淘汰.

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

GetDiscriminatorProperty(IMutableEntityType)
已淘汰.

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

GetNavigations(IMutableEntityType)
已淘汰.

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

GetOrAddForeignKey(IMutableEntityType, IMutableProperty, IMutableKey, IMutableEntityType)
已淘汰.

取得現有的關聯性,如果尚未定義,則建立新的關聯性。

GetOrAddForeignKey(IMutableEntityType, IReadOnlyList<IMutableProperty>, IMutableKey, IMutableEntityType)
已淘汰.

取得現有的關聯性,如果尚未定義,則建立新的關聯性。

GetOrAddIndex(IMutableEntityType, IMutableProperty)
已淘汰.

取得在指定屬性上定義的索引,如果尚未定義,則建立新的索引。

GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)
已淘汰.

取得在指定屬性上定義的索引,如果尚未定義,則建立新的索引。

GetOrAddKey(IMutableEntityType, IMutableProperty)
已淘汰.

取得屬性上定義的現有替代索引鍵,如果尚未定義,則建立新的金鑰。

GetOrAddKey(IMutableEntityType, IReadOnlyList<IMutableProperty>)
已淘汰.

取得在一組屬性上定義的現有替代索引鍵,如果尚未定義,則建立新的金鑰。

GetOrAddProperty(IMutableEntityType, PropertyInfo)
已淘汰.

取得具有指定名稱的屬性,如果尚未定義,則建立新的屬性。

GetOrAddProperty(IMutableEntityType, String, Type)
已淘汰.

取得具有指定名稱的屬性,如果尚未定義,則建立新的屬性。

GetOrAddProperty(IMutableEntityType, String, Type, Boolean)
已淘汰.

取得具有指定名稱的屬性,如果尚未定義,則建立新的屬性。

GetOrSetPrimaryKey(IMutableEntityType, IMutableProperty)
已淘汰.

取得實體的現有主鍵,或在未定義實體時加以設定。

GetOrSetPrimaryKey(IMutableEntityType, IReadOnlyList<IMutableProperty>)
已淘汰.

取得實體的現有主鍵,或在未定義實體時加以設定。

GetReferencingForeignKeys(IMutableEntityType)
已淘汰.

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

GetRootType(IMutableEntityType)
已淘汰.

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

RemoveDiscriminatorValue(IMutableEntityType)
已淘汰.

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

RemoveForeignKey(IMutableEntityType, IReadOnlyList<IMutableProperty>, IMutableKey, IMutableEntityType)
已淘汰.

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

RemoveIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)
已淘汰.

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

RemoveKey(IMutableEntityType, IReadOnlyList<IMutableProperty>)
已淘汰.

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

RemoveProperty(IMutableEntityType, String)
已淘汰.

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

RootType(IMutableEntityType)
已淘汰.

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

SetChangeTrackingStrategy(IMutableEntityType, ChangeTrackingStrategy)
已淘汰.

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

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

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

SetDefiningQuery(IMutableEntityType, LambdaExpression)
已淘汰.

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

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

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

SetDiscriminatorProperty(IMutableEntityType, IProperty)
已淘汰.

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

SetDiscriminatorValue(IMutableEntityType, Object)
已淘汰.

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

SetNavigationAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)
已淘汰.

PropertyAccessMode設定要用於此實體型別導覽的 。

請注意,個別導覽可以覆寫此存取模式。 此處設定的值將用於未指定覆寫的任何流覽。

SetPrimaryKey(IMutableEntityType, IMutableProperty)
已淘汰.

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

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)
已淘汰.

PropertyAccessMode設定要用於這個實體類型之屬性的 。

請注意,個別屬性可以覆寫此存取模式。 此處設定的值將用於未指定覆寫的任何屬性。

SetPropertyAccessMode(IMutableEntityType, Nullable<PropertyAccessMode>)
已淘汰.

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

請注意,個別屬性和導覽可以覆寫此存取模式。 此處設定的值將用於未指定覆寫的任何屬性或導覽。

SetQueryFilter(IMutableEntityType, LambdaExpression)
已淘汰.

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

適用於