IConventionEntityType 介面

定義

表示 中的 IConventionModel 實體類型。

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

public interface IConventionEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase, Microsoft.EntityFrameworkCore.Metadata.IEntityType
public interface IConventionEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
type IConventionEntityType = interface
    interface IEntityType
    interface ITypeBase
    interface IAnnotatable
    interface IConventionTypeBase
    interface IConventionAnnotatable
type IConventionEntityType = interface
    interface IReadOnlyEntityType
    interface IReadOnlyTypeBase
    interface IReadOnlyAnnotatable
    interface IConventionTypeBase
    interface IConventionAnnotatable
Public Interface IConventionEntityType
Implements IConventionTypeBase, IEntityType
Public Interface IConventionEntityType
Implements IConventionTypeBase, IReadOnlyEntityType
實作

備註

如需詳細資訊和範例,請參閱 模型建置慣例

屬性

BaseType

取得此實體類型的基底類型。 null如果這不是繼承階層中的衍生型別,則傳回 。

Builder

取得可用來設定此實體類型的產生器。

ClrType

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

(繼承來源 IReadOnlyTypeBase)
ConstructorBinding

InstantiationBinding取得慣用建構函式的 。

(繼承來源 ITypeBase)
ContainingEntityType

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

(繼承來源 IReadOnlyTypeBase)
DefiningEntityType
已過時。.

取得定義實體類型。

DefiningNavigationName
已過時。.

取得定義導覽的名稱。

(繼承來源 IReadOnlyEntityType)
DefiningQuery

取得 LINQ 查詢,做為此類型查詢的預設來源。

(繼承來源 IEntityType)
HasSharedClrType

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

(繼承來源 IReadOnlyTypeBase)
IsInModel

指出這個物件是否在模型中,亦即尚未從其中一個物件中移除。

(繼承來源 IConventionAnnotatable)
IsKeyless

取得值,指出實體類型是否沒有索引鍵。 如果 true 只能用於查詢,則為 。

IsPropertyBag

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

(繼承來源 IReadOnlyTypeBase)
IsQueryType

取得這個實體類型是否為查詢類型。

(繼承來源 IEntityType)
Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
Model

取得這個實體所屬的模型。

Name

取得這個型別的名稱。

(繼承來源 IReadOnlyTypeBase)
QueryFilter

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

(繼承來源 IEntityType)
ServiceOnlyConstructorBinding

InstantiationBinding取得建立僅初始化服務屬性之實例時慣用建構函式的 。

(繼承來源 IEntityType)

方法

AddAnnotation(String, Object, Boolean)

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

(繼承來源 IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

將批註加入物件。

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

將 和 索引子所支援的屬性加入至此類型。

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

將屬性新增至這個類型。

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

將屬性新增至這個類型。

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

將屬性新增至這個類型。

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

將屬性新增至這個類型。

(繼承來源 IConventionTypeBase)
AddForeignKey(IConventionProperty, IConventionKey, IConventionEntityType, Boolean)

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

AddForeignKey(IReadOnlyList<IConventionProperty>, IConventionKey, IConventionEntityType, Boolean, Boolean)

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

AddIgnored(String, Boolean)

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

(繼承來源 IConventionTypeBase)
AddIndex(IConventionProperty, Boolean)

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

AddIndex(IConventionProperty, String, Boolean)

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

AddIndex(IReadOnlyList<IConventionProperty>, Boolean)

將未命名的索引加入至這個實體類型。

AddIndex(IReadOnlyList<IConventionProperty>, String, Boolean)

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

AddIndexerProperty(String, Type, Boolean, Boolean)

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

AddKey(IConventionProperty, Boolean)

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

AddKey(IReadOnlyList<IConventionProperty>, Boolean)

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

AddProperty(MemberInfo, Boolean)

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

AddProperty(String, Boolean)

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

AddProperty(String, Type, Boolean, Boolean)

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

AddProperty(String, Type, MemberInfo, Boolean, Boolean)

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

AddRuntimeAnnotation(String, Object)

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

(繼承來源 IAnnotatable)
AddServiceProperty(MemberInfo, Boolean)

將服務屬性新增至這個實體類型。

AddServiceProperty(MemberInfo, Type, Boolean)

將服務屬性加入至此實體類型。

AddSkipNavigation(String, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

將新的略過導覽屬性新增至此實體類型。

AddSkipNavigation(String, Type, MemberInfo, IConventionEntityType, Boolean, Boolean, Boolean)

將新的略過導覽屬性新增至此實體類型。

AddTrigger(String, Boolean)

在實體類型上建立具有指定名稱的新觸發程式。 如果具有相同名稱的觸發程式存在於相同的實體類型上,就會擲回例外狀況。

AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
DisplayName()

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

(繼承來源 IReadOnlyTypeBase)
DisplayName(Boolean)

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

(繼承來源 IReadOnlyTypeBase)
FindAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
FindClosestCommonParent(IEntityType)

傳回最接近的實體類型,這是兩個指定實體類型的父代。 如果其中一個指定的實體是另一個實體的父系,則會傳回該父代。 null如果兩個實體類型不在相同的階層中,則傳回 。

(繼承來源 IEntityType)
FindClosestCommonParent(IReadOnlyEntityType)

傳回最接近的實體類型,該類型是兩個指定實體類型的父系。 如果其中一個指定的實體是另一個實體的父系,則會傳回該父系。 null如果兩個實體類型不在相同的階層中,則傳回 。

FindComplexProperty(MemberInfo)

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

(繼承來源 IReadOnlyTypeBase)
FindComplexProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
FindDeclaredComplexProperty(String)

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

(繼承來源 IReadOnlyTypeBase)
FindDeclaredForeignKeys(IReadOnlyList<IReadOnlyProperty>)

使用指定的屬性,取得在這個實體類型上宣告的外鍵。

FindDeclaredNavigation(String)

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

FindDeclaredProperty(String)

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

FindDeclaredSkipNavigation(String)

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

FindDeclaredTrigger(String)

尋找具有指定名稱的觸發程式。

FindDiscriminatorProperty()

傳回將用於儲存鑒別子值的屬性。

FindForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

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

FindForeignKey(IReadOnlyList<IReadOnlyProperty>, IReadOnlyKey, IReadOnlyEntityType)

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

FindForeignKey(IReadOnlyProperty, IReadOnlyKey, IReadOnlyEntityType)

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

FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)

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

FindForeignKeys(IReadOnlyProperty)

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

FindIgnoredConfigurationSource(String)

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

(繼承來源 IConventionTypeBase)
FindIndex(IReadOnlyList<IProperty>)

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

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

FindIndex(IReadOnlyList<IReadOnlyProperty>)

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

FindIndex(IReadOnlyProperty)

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

FindIndex(String)

取得具有指定名稱的索引。 如果不存在這類索引,則傳 null 回 。

FindIndexerPropertyInfo()

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

(繼承來源 IReadOnlyTypeBase)
FindKey(IReadOnlyList<IProperty>)

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

FindKey(IReadOnlyList<IReadOnlyProperty>)

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

FindKey(IReadOnlyProperty)

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

FindMember(String)

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

(繼承來源 IReadOnlyTypeBase)
FindMembersInHierarchy(String)

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

(繼承來源 IReadOnlyTypeBase)
FindNavigation(MemberInfo)

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

FindNavigation(String)

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

FindOwnership()

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

FindPrimaryKey()

取得這個實體類型的主鍵。 如果未定義主鍵,則傳 null 回 。

FindProperties(IReadOnlyList<String>)

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

FindProperty(MemberInfo)

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

FindProperty(String)

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

FindRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(繼承來源 IAnnotatable)
FindServiceProperty(String)

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

FindSkipNavigation(MemberInfo)

取得這個實體類型的略過導覽屬性。 如果找不到導覽屬性,則傳 null 回 。

FindSkipNavigation(String)

取得這個實體類型的略過導覽屬性。 如果找不到略過導覽屬性,則傳 null 回 。

GetAllBaseTypes()

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

GetAllBaseTypesAscending()

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

GetAllBaseTypesInclusive()

傳回此實體類型的所有基底類型,包括類型本身、由上至下。

GetAllBaseTypesInclusiveAscending()

傳回此實體類型的所有基底類型,包括類型本身、由下至上。

GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IReadOnlyAnnotatable)
GetBaseTypeConfigurationSource()

傳回 屬性的組 BaseType 態來源。

GetChangeTrackingStrategy()

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

(繼承來源 IReadOnlyTypeBase)
GetChangeTrackingStrategyConfigurationSource()

傳回 的 GetChangeTrackingStrategy() 組態來源。

GetComplexProperties()

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

(繼承來源 IReadOnlyTypeBase)
GetConcreteDerivedTypesInclusive()

傳回這個實體類型的所有衍生型別,包括不是 abstract 的類型本身。

(繼承來源 IReadOnlyEntityType)
GetConfigurationSource()

取得這個實體類型的組態來源。

GetDeclaredComplexProperties()

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

(繼承來源 IReadOnlyTypeBase)
GetDeclaredForeignKeys()

取得在這個實體類型上宣告的所有外鍵。

GetDeclaredIndexes()

取得在此實體類型上宣告的所有索引。

GetDeclaredKeys()

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

GetDeclaredMembers()

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

(繼承來源 IReadOnlyTypeBase)
GetDeclaredNavigations()

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

GetDeclaredProperties()

取得在這個實體類型上宣告的所有非導覽屬性。

GetDeclaredReferencingForeignKeys()

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

GetDeclaredServiceProperties()

取得在此實體類型上宣告的所有服務屬性。

GetDeclaredSkipNavigations()

取得在這個實體類型上宣告的略過流覽屬性。

GetDeclaredTriggers()

傳回實體類型上宣告的觸發程式。

GetDefaultDiscriminatorValue()

傳回用於此實體類型的預設辨別子值。

(繼承來源 IReadOnlyEntityType)
GetDerivedComplexProperties()

取得在衍生自此類型之型別上宣告的複雜屬性。

(繼承來源 IReadOnlyTypeBase)
GetDerivedForeignKeys()

取得從這個實體類型衍生的類型上宣告的所有外鍵。

GetDerivedIndexes()

取得衍生自這個實體類型之型別上宣告的所有索引。

GetDerivedNavigations()

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

GetDerivedProperties()

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

GetDerivedServiceProperties()

取得從這個實體類型衍生之型別上宣告的所有服務屬性。

GetDerivedSkipNavigations()

取得從這個實體類型衍生之型別上宣告的所有略過流覽屬性。

GetDerivedTypes()

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

GetDerivedTypesInclusive()

傳回此實體類型的所有衍生類型,包括類型本身。

GetDirectlyDerivedTypes()

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

GetDiscriminatorMappingCompleteConfigurationSource()

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

GetDiscriminatorPropertyConfigurationSource()

ConfigurationSource取得鑒別子屬性的 。

GetDiscriminatorPropertyName()

傳回將用於儲存鑒別子值的屬性名稱。

(繼承來源 IReadOnlyEntityType)
GetDiscriminatorValue()

傳回這個實體類型的辨別子值。

(繼承來源 IReadOnlyEntityType)
GetDiscriminatorValueConfigurationSource()

ConfigurationSource取得鑒別子值的 。

GetFlattenedComplexProperties()

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

(繼承來源 ITypeBase)
GetFlattenedDeclaredProperties()

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

(繼承來源 ITypeBase)
GetFlattenedProperties()

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

(繼承來源 ITypeBase)
GetForeignKeyProperties()

傳回外鍵中包含的屬性。

(繼承來源 IEntityType)
GetForeignKeys()

取得在這個實體類型上定義的外鍵。

GetIgnoredMembers()

取得所有忽略的成員。

(繼承來源 IConventionTypeBase)
GetIndexes()

取得這個實體類型上定義的索引。

GetIsDiscriminatorMappingComplete()

傳回值,指出此實體類型的辨別子對應是否完成。

(繼承來源 IReadOnlyEntityType)
GetIsKeylessConfigurationSource()

傳回 IsKeyless 屬性的組態來源。

GetKeys()

取得這個實體類型的主要和替代索引鍵。

GetMembers()

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

(繼承來源 IReadOnlyTypeBase)
GetNavigationAccessMode()

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

(繼承來源 IReadOnlyTypeBase)
GetNavigationAccessModeConfigurationSource()

傳回 的 GetNavigationAccessMode() 組態來源。

GetNavigations()

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

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

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

(繼承來源 IAnnotatable)
GetOrCreateEmptyMaterializer(IEntityMaterializerSource)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

(繼承來源 IReadOnlyEntityType)
GetOrCreateMaterializer(IEntityMaterializerSource)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

(繼承來源 IReadOnlyEntityType)
GetPrimaryKeyConfigurationSource()

傳回主鍵的組態來源。

GetProperties()

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

GetProperty(String)

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

GetPropertyAccessMode()

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

(繼承來源 IReadOnlyTypeBase)
GetPropertyAccessModeConfigurationSource()

傳回 的 GetPropertyAccessMode() 組態來源。

(繼承來源 IConventionTypeBase)
GetQueryFilter()

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

(繼承來源 IReadOnlyEntityType)
GetQueryFilterConfigurationSource()

傳回 的 GetQueryFilter() 組態來源。

GetReferencingForeignKeys()

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

GetRootType()

取得這個實體類型的根基底類型。

GetRuntimeAnnotations()

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

(繼承來源 IAnnotatable)
GetSeedData(Boolean)

取得儲存在指定實體類型的模型中的資料。

(繼承來源 IReadOnlyEntityType)
GetServiceProperties()

取得這個實體類型上定義的所有服務屬性。

GetSkipNavigations()

取得這個實體類型上的所有略過導覽屬性。

GetSnapshottableMembers()

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

(繼承來源 ITypeBase)
GetValueGeneratingProperties()

傳回當實體專案轉換成 Added 狀態時,需要產生值的屬性。

(繼承來源 IEntityType)
HasBaseType(IConventionEntityType, Boolean)
已過時。.

設定此實體類型的基底類型。 null如果這不是繼承階層中的衍生型別,則傳回 。

HasDefiningNavigation()
已過時。.

取得值,指出這個實體類型是否有定義導覽。

(繼承來源 IReadOnlyEntityType)
HasNoKey(Nullable<Boolean>, Boolean)
已過時。.

設定值,指出實體類型是否沒有索引鍵。 設定為 true 時,只能用於查詢。 null 將 重設為預設值。

HasServiceProperties()

檢查此實體類型是否有任何 IServiceProperty 已定義。

(繼承來源 IReadOnlyEntityType)
IsAbstract()

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

(繼承來源 IReadOnlyTypeBase)
IsAssignableFrom(IReadOnlyEntityType)

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

(繼承來源 IReadOnlyEntityType)
IsAssignableFrom(IReadOnlyTypeBase)

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

(繼承來源 IReadOnlyTypeBase)
IsIgnored(String)

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

(繼承來源 IConventionTypeBase)
IsInOwnershipPath(IReadOnlyEntityType)

取得值,指出指定的實體類型是否在這個實體類型的擁有權路徑中。

(繼承來源 IReadOnlyEntityType)
IsOwned()

取得值,指出此實體類型是否由另一個實體類型所擁有。

(繼承來源 IReadOnlyEntityType)
IsStrictlyDerivedFrom(IReadOnlyEntityType)

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

(繼承來源 IReadOnlyEntityType)
IsStrictlyDerivedFrom(IReadOnlyTypeBase)

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

(繼承來源 IReadOnlyTypeBase)
LeastDerivedType(IEntityType)

取得指定兩者之間的最小衍生型別。

(繼承來源 IEntityType)
LeastDerivedType(IReadOnlyEntityType)

取得指定兩者之間的最小衍生型別。

RemoveAnnotation(String)

從這個 物件中移除具有指定名稱的批註。

(繼承來源 IConventionAnnotatable)
RemoveComplexProperty(IConventionComplexProperty)

從這個類型移除 屬性。

(繼承來源 IConventionTypeBase)
RemoveComplexProperty(String)

從這個類型移除 屬性。

(繼承來源 IConventionTypeBase)
RemoveDiscriminatorValue()

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

RemoveForeignKey(IConventionForeignKey)

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

RemoveForeignKey(IReadOnlyForeignKey)

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

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

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

RemoveIgnored(String)

移除忽略的成員名稱。

(繼承來源 IConventionTypeBase)
RemoveIndex(IConventionIndex)

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

RemoveIndex(IReadOnlyIndex)

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

RemoveIndex(IReadOnlyList<IReadOnlyProperty>)

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

RemoveKey(IConventionKey)

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

RemoveKey(IReadOnlyKey)

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

RemoveKey(IReadOnlyList<IReadOnlyProperty>)

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

RemoveProperty(IConventionProperty)

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

RemoveProperty(IReadOnlyProperty)

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

RemoveProperty(String)

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

RemoveRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
RemoveServiceProperty(IReadOnlyServiceProperty)

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

RemoveServiceProperty(String)

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

RemoveSkipNavigation(IConventionSkipNavigation)

從這個實體類型移除略過導覽屬性。

RemoveSkipNavigation(IReadOnlySkipNavigation)

從這個實體類型移除略過導覽屬性。

RemoveTrigger(String)

移除具有指定名稱的觸發程式。

SetAnnotation(String, Object, Boolean)

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

(繼承來源 IConventionAnnotatable)
SetBaseType(IConventionEntityType, Boolean)

設定此實體類型的基底類型。 null如果這不是繼承階層中的衍生型別,則傳回 。

SetChangeTrackingStrategy(Nullable<ChangeTrackingStrategy>, Boolean)

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

SetDiscriminatorMappingComplete(Nullable<Boolean>, Boolean)

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

SetDiscriminatorProperty(IReadOnlyProperty, Boolean)

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

SetDiscriminatorValue(Object, Boolean)

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

SetIsKeyless(Nullable<Boolean>, Boolean)

設定值,指出實體類型是否沒有索引鍵。 設定為 true 時,只能用於查詢。 null 將 重設為預設值。

SetNavigationAccessMode(Nullable<PropertyAccessMode>, Boolean)

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

SetOrRemoveAnnotation(String, Object, Boolean)

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

(繼承來源 IConventionAnnotatable)
SetPrimaryKey(IConventionProperty, Boolean)

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

SetPrimaryKey(IReadOnlyList<IConventionProperty>, Boolean)

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

SetPropertyAccessMode(Nullable<PropertyAccessMode>, Boolean)

PropertyAccessMode設定要用於此類型屬性的 。

(繼承來源 IConventionTypeBase)
SetQueryFilter(LambdaExpression, Boolean)

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

SetRuntimeAnnotation(String, Object)

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

(繼承來源 IAnnotatable)
ShortName()

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

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

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

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

(繼承來源 IReadOnlyEntityType)

明確介面實作

IReadOnlyTypeBase.IsAssignableFrom(IReadOnlyTypeBase)

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

(繼承來源 IReadOnlyEntityType)

擴充方法

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

將批註加入物件。

GetAnnotation(IConventionAnnotatable, String)

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

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

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

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 運算式篩選會自動套用至此實體類型的查詢。

GetNavigationAccessModeConfigurationSource(IConventionTypeBase)

傳回 的 GetNavigationAccessMode(ITypeBase) 組態來源。

GetPropertyAccessModeConfigurationSource(IConventionTypeBase)

傳回 的 GetPropertyAccessMode(ITypeBase) 組態來源。

IsIgnored(IConventionTypeBase, String)

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

SetNavigationAccessMode(IConventionTypeBase, Nullable<PropertyAccessMode>, Boolean)

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

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

SetPropertyAccessMode(IConventionTypeBase, Nullable<PropertyAccessMode>, Boolean)

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

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

GetAnalyticalStoreTimeToLive(IReadOnlyEntityType)

傳回容器範圍內的分析存放區存留時間,以秒為單位。

GetAnalyticalStoreTimeToLiveConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器範圍中分析存放區存留時間的 ,以秒為單位。

GetContainer(IEntityType)

傳回實體類型所對應的容器名稱。

GetContainer(IReadOnlyEntityType)

傳回實體類型所對應的容器名稱。

GetContainerConfigurationSource(IConventionEntityType)

ConfigurationSource取得實體類型所對應的容器的 。

GetContainingPropertyName(IEntityType)

傳回實體類型所對應的父屬性名稱。

GetContainingPropertyName(IReadOnlyEntityType)

傳回實體類型所對應的父屬性名稱。

GetContainingPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得對應實體型別之父屬性的 。

GetDefaultTimeToLive(IReadOnlyEntityType)

傳回容器範圍的預設存留時間,以秒為單位。

GetDefaultTimeToLiveConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器範圍中預設存留時間的 。

GetETagProperty(IConventionEntityType)

取得對應至 Cosmos ETag 之實體上的 屬性,如果存在的話。

GetETagProperty(IEntityType)

取得對應至 Cosmos ETag 之實體上的 屬性,如果存在的話。

GetETagProperty(IReadOnlyEntityType)

取得對應至 Cosmos ETag 之實體上的 屬性,如果存在的話。

GetETagPropertyName(IEntityType)

傳回用來儲存 etag 的屬性名稱。

GetETagPropertyName(IReadOnlyEntityType)

傳回用來儲存 ETag 的屬性名稱。

GetETagPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得用來儲存 etag 之屬性的 。

GetPartitionKeyProperty(IConventionEntityType)

傳回用來儲存資料分割索引鍵的屬性。

GetPartitionKeyProperty(IReadOnlyEntityType)

傳回用來儲存資料分割索引鍵的屬性。

GetPartitionKeyPropertyName(IEntityType)

傳回用來儲存資料分割索引鍵的屬性名稱。

GetPartitionKeyPropertyName(IReadOnlyEntityType)

傳回用來儲存資料分割索引鍵的屬性名稱。

GetPartitionKeyPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得用來儲存資料分割索引鍵之屬性的 。

GetThroughput(IReadOnlyEntityType)

傳回容器範圍的布建輸送量。

GetThroughputConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器範圍中布建輸送量的 。

SetAnalyticalStoreTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

設定容器範圍分析存放區存留時間,以秒為單位。

SetContainer(IConventionEntityType, String, Boolean)

設定實體類型所對應的容器名稱。

SetContainingPropertyName(IConventionEntityType, String, Boolean)

設定實體類型所對應的父屬性名稱。

SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

設定容器範圍的預設存留時間,以秒為單位。

SetETagPropertyName(IConventionEntityType, String, Boolean)

設定用來儲存 ETag 的屬性名稱。

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

設定用來儲存資料分割索引鍵的屬性名稱。

SetThroughput(IConventionEntityType, Nullable<Int32>, Nullable<Boolean>, Boolean)

在容器範圍設定布建的輸送量。

DisplayName(ITypeBase)

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

FindDeclaredNavigation(IEntityType, String)

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

FindDeclaredProperty(IEntityType, String)

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

FindDefiningNavigation(IEntityType)
已過時。.

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

FindForeignKey(IEntityType, IProperty, IKey, IEntityType)

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

FindForeignKeys(IEntityType, IProperty)

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

FindForeignKeys(IEntityType, IReadOnlyList<IProperty>)

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

FindIndex(IEntityType, IProperty)

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

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

FindKey(IEntityType, IProperty)

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

FindNavigation(IEntityType, MemberInfo)

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

FindNavigation(IEntityType, String)

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

FindOwnership(IEntityType)

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

FindProperties(IEntityType, IReadOnlyList<String>)

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

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

FindProperty(IEntityType, MemberInfo)

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

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

FullName(ITypeBase)
已過時。.

取得指定 IReadOnlyTypeBase 的唯一名稱。

GetAllBaseTypes(IEntityType)

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

GetAllBaseTypesAscending(IEntityType)

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

GetAllBaseTypesInclusive(IEntityType)

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

GetAllBaseTypesInclusiveAscending(IEntityType)

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

GetChangeTrackingStrategy(IEntityType)

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

GetClosestCommonParent(IEntityType, IEntityType)
已過時。.

傳回最接近的實體類型,該類型是兩個指定實體類型的父系。 如果其中一個指定的實體是另一個實體的父系,則會傳回該父系。 null如果兩個實體類型不在相同的階層中,則傳回 。

GetConcreteDerivedTypesInclusive(IEntityType)

傳回指定 IEntityType 的所有衍生型別,包括型別本身,不是 abstract

GetDeclaredForeignKeys(IEntityType)

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

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

GetDeclaredIndexes(IEntityType)

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

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

GetDeclaredKeys(IEntityType)

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

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

GetDeclaredNavigations(IEntityType)

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

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

GetDeclaredProperties(IEntityType)

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

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

GetDeclaredReferencingForeignKeys(IEntityType)

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

GetDeclaredServiceProperties(IEntityType)

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

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

GetDefiningQuery(IEntityType)
已過時。.

取得 LINQ 查詢,做為此類型查詢的預設來源。

GetDerivedForeignKeys(IEntityType)

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

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

GetDerivedTypes(IEntityType)

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

GetDerivedTypesInclusive(IEntityType)

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

GetDirectlyDerivedTypes(IEntityType)

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

GetDiscriminatorProperty(IEntityType)
已過時。.

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

GetDiscriminatorValue(IEntityType)

傳回這個實體類型的辨別子值。

GetIsDiscriminatorMappingComplete(IEntityType)

傳回值,指出此實體類型的辨別子對應是否完成。

GetNavigations(IEntityType)
已過時。.

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

GetProperty(IEntityType, String)

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

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

GetQueryFilter(IEntityType)

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

GetReferencingForeignKeys(IEntityType)

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

GetRootType(IEntityType)

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

GetSeedData(IEntityType, Boolean)

取得儲存在指定實體類型的模型中的資料。

HasDefiningNavigation(IEntityType)
已過時。.

取得值,指出這個實體類型是否有定義導覽。

IsAbstract(ITypeBase)

檢查此實體類型是否代表抽象類別型。

IsAssignableFrom(IEntityType, IEntityType)

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

IsInOwnershipPath(IEntityType, IEntityType)

取得值,指出指定的實體類型是否在這個實體類型的擁有權路徑中。

IsOwned(IEntityType)

取得值,指出此實體類型是否由另一個實體類型所擁有。

IsStrictlyDerivedFrom(IEntityType, IEntityType)

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

LeastDerivedType(IEntityType, IEntityType)

取得指定兩者之間的最小衍生型別。

RootType(IEntityType)
已過時。.

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

ShortName(ITypeBase)

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

ToDebugString(IEntityType, MetadataDebugStringOptions, Int32)

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

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

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

GetDefiningQueryConfigurationSource(IConventionEntityType)

傳回 的 GetInMemoryQuery(IReadOnlyEntityType) 組態來源。

GetInMemoryQuery(IEntityType)

取得 LINQ 查詢,做為此類型查詢的預設來源。

GetInMemoryQuery(IReadOnlyEntityType)

取得 LINQ 查詢,做為此類型查詢的預設來源。

SetInMemoryQuery(IConventionEntityType, LambdaExpression, Boolean)

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

AddCheckConstraint(IConventionEntityType, String, String, Boolean)

在實體類型上建立具有指定名稱的新檢查條件約束。 如果具有相同名稱的檢查條件約束存在於相同的實體類型上,則會擲回例外狀況。

FindCheckConstraint(IConventionEntityType, String)

IConventionCheckConstraint尋找具有指定名稱的 。

FindCheckConstraint(IEntityType, String)

ICheckConstraint尋找具有指定名稱的 。

FindCheckConstraint(IReadOnlyEntityType, String)

IReadOnlyCheckConstraint尋找具有指定名稱的 。

FindMappingFragment(IConventionEntityType, StoreObjectIdentifier)

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

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

FindMappingFragment(IReadOnlyEntityType, StoreObjectIdentifier)

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

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

FindRowInternalForeignKeys(IConventionEntityType, StoreObjectIdentifier)

取得指定實體類型的外鍵,指向共用相同資料表型別存放區物件的其他實體類型。

FindRowInternalForeignKeys(IEntityType, StoreObjectIdentifier)

取得指定實體類型的外鍵,指向共用相同資料表型別存放區物件的其他實體類型。

FindRowInternalForeignKeys(IReadOnlyEntityType, StoreObjectIdentifier)

取得指定實體類型的外鍵,指向共用相同資料表型別存放區物件的其他實體類型。

GetCheckConstraints(IConventionEntityType)

傳回實體類型中包含的所有檢查條件約束。

GetCheckConstraints(IEntityType)

傳回實體類型中包含的所有檢查條件約束。

GetCheckConstraints(IReadOnlyEntityType)

傳回實體類型中包含的所有檢查條件約束。

GetComment(IEntityType)

傳回此實體所對應之資料表的批註。

GetComment(IReadOnlyEntityType)

傳回此實體所對應之資料表的批註。

GetCommentConfigurationSource(IConventionEntityType)

ConfigurationSource取得資料表批註的 。

GetContainerColumnName(IReadOnlyEntityType)

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

GetContainerColumnNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器資料行名稱的 。

GetContainerColumnTypeMapping(IReadOnlyEntityType)
已過時。.

取得實體類型所對應的容器資料行類型對應。

GetContainerColumnTypeMappingConfigurationSource(IConventionEntityType)
已過時。.

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

GetDeclaredCheckConstraints(IConventionEntityType)

傳回實體類型上宣告的所有檢查條件約束。

GetDeclaredCheckConstraints(IReadOnlyEntityType)

傳回實體類型上宣告的所有檢查條件約束。

GetDefaultMappings(IEntityType)

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

GetDefaultSchema(IEntityType)

傳回要用於此實體類型的預設資料庫架構。

GetDefaultSchema(IReadOnlyEntityType)

傳回要用於此實體類型的預設資料庫架構。

GetDefaultSqlQueryName(IEntityType)

取得預設的 SQL 查詢名稱,這個查詢名稱會在使用 RelationalEntityTypeBuilderExtensions.ToSqlQuery 對應時用於這個實體類型。

GetDefaultSqlQueryName(IReadOnlyEntityType)

取得預設的 SQL 查詢名稱,這個查詢名稱會在使用 RelationalEntityTypeBuilderExtensions.ToSqlQuery 對應時用於這個實體類型。

GetDefaultTableName(IEntityType)

傳回用於此實體類型的預設資料表名稱。

GetDefaultTableName(IEntityType, Boolean)

傳回用於此實體類型的預設資料表名稱。

GetDefaultTableName(IReadOnlyEntityType, Boolean)

傳回用於此實體類型的預設資料表名稱。

GetDefaultViewName(IEntityType)

傳回用於此實體類型的預設檢視名稱。

GetDefaultViewName(IReadOnlyEntityType)

傳回用於此實體類型的預設檢視名稱。

GetDefaultViewSchema(IEntityType)

傳回用於此實體檢視的預設資料庫架構。

GetDefaultViewSchema(IReadOnlyEntityType)

傳回用於此實體檢視的預設資料庫架構。

GetDeleteStoredProcedure(IConventionEntityType)

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

GetDeleteStoredProcedure(IReadOnlyEntityType)

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

GetDeleteStoredProcedureConfigurationSource(IConventionEntityType)

ConfigurationSource取得刪除預存程式的 。

GetFunctionMappings(IEntityType)

傳回實體類型所對應的函式。

GetFunctionName(IEntityType)

傳回實體類型所對應 null 或未對應至函式的函式名稱。

GetFunctionName(IReadOnlyEntityType)

傳回實體類型所對應 null 或未對應至函式的函式名稱。

GetFunctionNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得函式名稱的 。

GetInsertStoredProcedure(IConventionEntityType)

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

GetInsertStoredProcedure(IReadOnlyEntityType)

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

GetInsertStoredProcedureConfigurationSource(IConventionEntityType)

ConfigurationSource取得插入預存程式的 。

GetIsTableExcludedFromMigrationsConfigurationSource(IConventionEntityType)

取得 的 ConfigurationSourceIsTableExcludedFromMigrations(IReadOnlyEntityType)

GetIsTableExcludedFromMigrationsConfigurationSource(IConventionEntityType, StoreObjectIdentifier)

取得 的 ConfigurationSourceIsTableExcludedFromMigrations(IReadOnlyEntityType, StoreObjectIdentifier)

GetJsonPropertyName(IReadOnlyEntityType)

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

GetJsonPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得指定實體類型的 JSON 屬性名稱的 。

GetMappingFragments(IConventionEntityType)

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

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

GetMappingFragments(IConventionEntityType, StoreObjectType)

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

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

GetMappingFragments(IReadOnlyEntityType)

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

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

GetMappingFragments(IReadOnlyEntityType, StoreObjectType)

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

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

GetMappingStrategy(IReadOnlyEntityType)

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

GetMappingStrategyConfigurationSource(IConventionEntityType)

取得 的 ConfigurationSourceGetMappingStrategy(IReadOnlyEntityType)

GetOrCreateMappingFragment(IConventionEntityType, StoreObjectIdentifier, Boolean)

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

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

GetSchema(IEntityType)

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

GetSchema(IReadOnlyEntityType)

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

GetSchemaConfigurationSource(IConventionEntityType)

ConfigurationSource取得資料庫架構的 。

GetSchemaQualifiedTableName(IEntityType)

傳回架構前面加上實體類型的資料表名稱,如果 null 未對應至資料表,則傳回該資料表的名稱。

GetSchemaQualifiedTableName(IReadOnlyEntityType)

傳回架構前面加上實體類型的資料表名稱,如果 null 未對應至資料表,則傳回該資料表的名稱。

GetSchemaQualifiedViewName(IEntityType)

傳回架構 null 前面所對應的實體類型或未對應至檢視的檢視名稱。

GetSchemaQualifiedViewName(IReadOnlyEntityType)

傳回架構 null 前面所對應的實體類型或未對應至檢視的檢視名稱。

GetSqlQuery(IEntityType)

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

GetSqlQuery(IReadOnlyEntityType)

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

GetSqlQueryConfigurationSource(IConventionEntityType)

ConfigurationSource取得查詢 SQL 字串的 。

GetSqlQueryMappings(IEntityType)

傳回 SQL 字串對應。

GetTableMappings(IEntityType)

傳回實體類型所對應的資料表。

GetTableName(IEntityType)

傳回實體類型所對應 null 或未對應至資料表的資料表名稱。

GetTableName(IReadOnlyEntityType)

傳回實體類型所對應 null 或未對應至資料表的資料表名稱。

GetTableNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得資料表名稱的 。

GetUpdateStoredProcedure(IConventionEntityType)

傳回實體類型要對應以進行更新的預存程式,如果未 null 對應至預存程式,則傳回預存程式。

GetUpdateStoredProcedure(IReadOnlyEntityType)

傳回實體類型要對應以進行更新的預存程式,如果未 null 對應至預存程式,則傳回預存程式。

GetUpdateStoredProcedureConfigurationSource(IConventionEntityType)

ConfigurationSource取得更新預存程式的 。

GetViewMappings(IEntityType)

傳回實體類型所對應的檢視。

GetViewName(IEntityType)

傳回實體類型所對應 null 或未對應至檢視的檢視名稱。

GetViewName(IReadOnlyEntityType)

傳回實體類型所對應 null 或未對應至檢視的檢視名稱。

GetViewNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得檢視名稱的 。

GetViewSchema(IEntityType)

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

GetViewSchema(IReadOnlyEntityType)

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

GetViewSchemaConfigurationSource(IConventionEntityType)

ConfigurationSource取得檢視架構的 。

IsIgnoredByMigrations(IEntityType)

取得值,指出移轉是否忽略實體類型。

IsMappedToJson(IReadOnlyEntityType)

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

IsTableExcludedFromMigrations(IEntityType)

取得值,指出移轉是否忽略相關聯的資料表。

IsTableExcludedFromMigrations(IReadOnlyEntityType)

取得值,指出移轉是否忽略相關聯的資料表。

IsTableExcludedFromMigrations(IReadOnlyEntityType, StoreObjectIdentifier)

取得值,指出移轉是否忽略指定的資料表。

RemoveCheckConstraint(IConventionEntityType, String)

IConventionCheckConstraint移除具有指定名稱的 。

RemoveDeleteStoredProcedure(IConventionEntityType)

移除此實體類型的對應刪除預存程式。

RemoveInsertStoredProcedure(IConventionEntityType)

移除此實體類型的對應插入預存程式。

RemoveMappingFragment(IConventionEntityType, StoreObjectIdentifier)

移除特定類似資料表的存放區物件的實體類型對應。

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

RemoveUpdateStoredProcedure(IConventionEntityType)

移除此實體類型的對應更新預存程式。

SetComment(IConventionEntityType, String, Boolean)

設定要套用至此實體所對應之資料表的批註。

SetContainerColumnName(IConventionEntityType, String, Boolean)

設定實體類型所對應的容器資料行名稱。

SetContainerColumnTypeMapping(IConventionEntityType, RelationalTypeMapping, Boolean)
已過時。.

設定實體類型所對應之容器資料行的類型對應。

SetDeleteStoredProcedure(IConventionEntityType, Boolean)

將實體類型對應至刪除的預存程式。

SetFunctionName(IConventionEntityType, String, Boolean)

設定實體類型所對應的函式名稱。

SetInsertStoredProcedure(IConventionEntityType, Boolean)

將實體類型對應至插入的預存程式。

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

設定值,指出移轉是否忽略相關聯的資料表。

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, Boolean)

設定值,指出移轉是否忽略相關聯的資料表。

SetJsonPropertyName(IConventionEntityType, String, Boolean)

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

SetMappingStrategy(IConventionEntityType, String, Boolean)

設定衍生類型的對應策略。

SetSchema(IConventionEntityType, String, Boolean)

設定包含對應資料表的資料庫架構。

SetSqlQuery(IConventionEntityType, String, Boolean)

設定用來提供實體類型的資料的 SQL 字串。

SetTableName(IConventionEntityType, String, Boolean)

設定實體類型所對應的資料表名稱。

SetUpdateStoredProcedure(IConventionEntityType, Boolean)

將實體類型對應至更新的預存程式。

SetViewName(IConventionEntityType, String, Boolean)

設定實體類型所對應的檢視名稱。

SetViewSchema(IConventionEntityType, String, Boolean)

設定包含對應檢視的資料庫架構。

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 資料行。

GetDbSetName(IReadOnlyEntityType)

取得這個實體型別之 DbContext 類別上應用於 DbSet<TEntity> 屬性的名稱。

GetUseSqlReturningClauseConfigurationSource(IConventionEntityType)

取得設定來源,指出是否要在將變更儲存至資料表時使用 SQL RETURNING 子句。

IsSqlReturningClauseUsed(IReadOnlyEntityType)

傳回值,指出將變更儲存至資料表時,是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

IsSqlReturningClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

傳回值,指出將變更儲存至資料表時,是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

UseSqlReturningClause(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

設定值,指出將變更儲存至資料表時,是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

UseSqlReturningClause(IConventionEntityType, Nullable<Boolean>, Boolean)

設定值,指出將變更儲存至資料表時,是否要使用 SQL RETURNING 子句。 RETURNING 子句與某些 Sqlite 功能不相容,例如具有 AFTER 觸發程式的虛擬資料表或資料表。

GetHistoryTableName(IReadOnlyEntityType)

傳回值,代表與對應至時態表之實體相關聯的記錄資料表名稱。

GetHistoryTableNameConfigurationSource(IConventionEntityType)

取得時態記錄資料表名稱設定的組態來源。

GetHistoryTableSchema(IReadOnlyEntityType)

傳回值,表示與對應至時態表之實體相關聯的歷程記錄資料表架構。

GetHistoryTableSchemaConfigurationSource(IConventionEntityType)

取得時態記錄資料表架構設定的組態來源。

GetIsMemoryOptimizedConfigurationSource(IConventionEntityType)

取得記憶體優化設定的組態來源。

GetIsTemporalConfigurationSource(IConventionEntityType)

取得時態表設定的組態來源。

GetPeriodEndPropertyName(IReadOnlyEntityType)

傳回值,代表對應至時態表之實體的句點結束屬性名稱。

GetPeriodEndPropertyNameConfigurationSource(IConventionEntityType)

取得時態表期間結束屬性名稱設定的組態來源。

GetPeriodStartPropertyName(IReadOnlyEntityType)

傳回值,表示對應至時態表之實體的句點開始屬性名稱。

GetPeriodStartPropertyNameConfigurationSource(IConventionEntityType)

取得時態表期間開始屬性名稱設定的組態來源。

GetUseSqlOutputClauseConfigurationSource(IConventionEntityType)

取得設定來源,指出是否要在將變更儲存至資料表時使用 SQL OUTPUT 子句。

IsMemoryOptimized(IEntityType)

傳回值,指出實體類型是否對應至記憶體優化資料表。

IsMemoryOptimized(IReadOnlyEntityType)

傳回值,指出實體類型是否對應至記憶體優化資料表。

IsSqlOutputClauseUsed(IReadOnlyEntityType)

傳回值,指出將變更儲存至資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

IsSqlOutputClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

傳回值,指出將變更儲存至指定的資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

IsTemporal(IReadOnlyEntityType)

傳回值,指出實體類型是否對應至時態表。

SetHistoryTableName(IConventionEntityType, String, Boolean)

設定值,代表與對應至時態表之實體相關聯的記錄資料表名稱。

SetHistoryTableSchema(IConventionEntityType, String, Boolean)

設定值,表示與對應至時態表之實體相關聯的歷程記錄資料表架構。

SetIsMemoryOptimized(IConventionEntityType, Nullable<Boolean>, Boolean)

設定值,指出實體類型是否對應至記憶體優化資料表。

SetIsTemporal(IConventionEntityType, Nullable<Boolean>, Boolean)

設定值,指出實體類型是否對應至時態表。

SetPeriodEndPropertyName(IConventionEntityType, String, Boolean)

設定值,表示對應至時態表之實體的句點結束屬性名稱。

SetPeriodStartPropertyName(IConventionEntityType, String, Boolean)

設定值,表示對應至時態表之實體的句點開始屬性名稱。

UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

設定值,指出將變更儲存至資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

UseSqlOutputClause(IConventionEntityType, Nullable<Boolean>, Boolean)

設定值,指出將變更儲存至資料表時,是否要使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

GetNavigationAccessMode(ITypeBase)

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

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

GetPropertyAccessMode(ITypeBase)

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

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

適用於