語言

RuntimeModel 類別

定義

關於實體形狀、彼此關係,以及它們如何映射到資料庫的元資料。 模型通常是透過覆寫 OnModelCreating(ModelBuilder) 導出 DbContext的方法來建立的。

[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeModel : Microsoft.EntityFrameworkCore.Infrastructure.RuntimeAnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeModel
public class RuntimeModel : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeModel
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeModel : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeModel
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeModel = class
    inherit RuntimeAnnotatableBase
    interface IRuntimeModel
    interface IModel
    interface IReadOnlyModel
    interface IReadOnlyAnnotatable
    interface IAnnotatable
type RuntimeModel = class
    inherit AnnotatableBase
    interface IRuntimeModel
    interface IModel
    interface IReadOnlyModel
    interface IReadOnlyAnnotatable
    interface IAnnotatable
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeModel = class
    inherit AnnotatableBase
    interface IRuntimeModel
    interface IModel
    interface IReadOnlyModel
    interface IReadOnlyAnnotatable
    interface IAnnotatable
Public Class RuntimeModel
Inherits RuntimeAnnotatableBase
Implements IRuntimeModel
Public Class RuntimeModel
Inherits AnnotatableBase
Implements IRuntimeModel
繼承
繼承
RuntimeModel
屬性
實作
IAnnotatable IReadOnlyAnnotatable IModel Microsoft.EntityFrameworkCore.Metadata.Internal.IRuntimeModel IReadOnlyModel

備註

這是一種輕量級實作,基於已建構模型構建,並非設計時使用。

服役期間為 Scoped。 這表示每個 DbContext 實例都會使用自己的服務實例。 實作方式可能取決於其他註冊於任何生命週期的服務。 實作不需要執行緒安全。

更多資訊與範例請參閱 建模實體類型與關係 。

建構函式

名稱 Description
RuntimeModel()
已淘汰.

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

RuntimeModel(Boolean, Guid, Int32, Int32)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

屬性

名稱 Description
DebugView

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

IsReadOnly

表示目前物件是否為唯讀。

(繼承來源 AnnotatableBase)
Item[String]

取得帶有名稱的值註解,若不存在則回 null 傳。

(繼承來源 RuntimeAnnotatableBase)
Item[String]

取得帶有名稱的值註解,若不存在則回 null 傳。

(繼承來源 AnnotatableBase)
ModelId
已淘汰.

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

方法

名稱 Description
AddAnnotation(String, Annotation)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 AnnotatableBase)
AddAnnotation(String, Object)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 RuntimeAnnotatableBase)
AddAnnotation(String, Object)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

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

為此物件新增註解,覆蓋任何同名的現有註解。

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

為此物件新增註解。

(繼承來源 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

為此物件新增註解,覆蓋任何同名的現有註解。

(繼承來源 RuntimeAnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

為此物件新增註解。

(繼承來源 AnnotatableBase)
AddEntityType(String, Type, RuntimeEntityType, Boolean, ChangeTrackingStrategy, PropertyInfo, Boolean, String, Object, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

為模型新增一個具有定義導覽的實體類型。

AddEntityType(String, Type, RuntimeEntityType, Boolean, String, ChangeTrackingStrategy, PropertyInfo, Boolean, Object, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

為模型新增一個具有定義導覽的實體類型。

AddEntityType(String, Type, RuntimeEntityType, Boolean, String, ChangeTrackingStrategy, PropertyInfo, Boolean, Object)

為模型新增一個具有定義導覽的實體類型。

AddEntityType(String, Type, RuntimeEntityType, Boolean, String, ChangeTrackingStrategy, PropertyInfo, Boolean)

為模型新增一個具有定義導覽的實體類型。

AddRuntimeAnnotation(String, Annotation)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 RuntimeAnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 RuntimeAnnotatableBase)
AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

為此物件新增執行時註解。

(繼承來源 RuntimeAnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

為此物件新增執行時註解。

(繼承來源 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

為此物件新增執行時註解。

(繼承來源 RuntimeAnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

為此物件新增執行時註解。

(繼承來源 AnnotatableBase)
AddTypeMappingConfiguration(Type, Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, Type, ValueConverter)

新增純量型態的配置。

CreateAnnotation(String, Object)

建立新的註解。

(繼承來源 RuntimeAnnotatableBase)
CreateAnnotation(String, Object)

建立新的註解。

(繼承來源 AnnotatableBase)
CreateRuntimeAnnotation(String, Object)

建立新的執行時註解。

(繼承來源 RuntimeAnnotatableBase)
CreateRuntimeAnnotation(String, Object)

建立新的執行時註解。

(繼承來源 AnnotatableBase)
EnsureMutable()

如果模型是唯讀,則會拋出。

(繼承來源 AnnotatableBase)
EnsureReadOnly()

若模型非唯讀,則會擲出。

(繼承來源 AnnotatableBase)
FinalizeModel()

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

FindAdHocEntityType(Type)

會取得帶有名字的實體類型。 若未映射為臨時類型,則回傳 null 該名稱實體類型。

FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 RuntimeAnnotatableBase)
FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 AnnotatableBase)
FindEntityType(String)

會取得帶有名字的實體類型。 若未找到帶有該名稱的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型有定義導覽,則回傳 null 。

FindRuntimeAnnotation(String)

取得帶有名稱的執行時註解,若不存在則回 null 傳。

(繼承來源 RuntimeAnnotatableBase)
FindRuntimeAnnotation(String)

取得帶有名稱的執行時註解,若不存在則回 null 傳。

(繼承來源 AnnotatableBase)
GetAdHocEntityTypes()

取得模型中定義的所有臨時實體類型。

GetAnnotation(String)

取得帶有名稱的註解,若不存在則拋出。

(繼承來源 RuntimeAnnotatableBase)
GetAnnotation(String)

取得帶有名稱的註解,若不存在則拋出。

(繼承來源 AnnotatableBase)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 AnnotatableBase)
GetOrAddAdHocEntityType(RuntimeEntityType)

為模型新增一個臨時實體類型。

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

取得帶有名稱的執行時註解值,若不存在則加入該註解。

(繼承來源 RuntimeAnnotatableBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得帶有名稱的執行時註解值,若不存在則加入該註解。

(繼承來源 AnnotatableBase)
GetRuntimeAnnotations()

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

(繼承來源 RuntimeAnnotatableBase)
GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

當註解被設定或移除時會被呼叫。

(繼承來源 AnnotatableBase)
RemoveAnnotation(String)

移除該物件中給定的註解。

(繼承來源 RuntimeAnnotatableBase)
RemoveAnnotation(String)

移除該物件中給定的註解。

(繼承來源 AnnotatableBase)
RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

(繼承來源 RuntimeAnnotatableBase)
RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

(繼承來源 AnnotatableBase)
SetAnnotation(String, Annotation, Annotation)

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

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

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

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

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 AnnotatableBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 RuntimeAnnotatableBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 AnnotatableBase)
SetRuntimeAnnotation(String, Object)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 RuntimeAnnotatableBase)
SetRuntimeAnnotation(String, Object)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 AnnotatableBase)
SetSkipDetectChanges(Boolean)
已淘汰.

設定一個值,表示是否 DetectChanges() 應該被呼叫。

明確介面實作

名稱 Description
IAnnotatable.AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 RuntimeAnnotatableBase)
IAnnotatable.AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 AnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

取得帶有名稱的執行時註解,若不存在則回 null 傳。

(繼承來源 RuntimeAnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

取得帶有名稱的執行時註解,若不存在則回 null 傳。

(繼承來源 AnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

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

(繼承來源 RuntimeAnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

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

(繼承來源 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

(繼承來源 RuntimeAnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

(繼承來源 AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 RuntimeAnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 AnnotatableBase)
IModel.FindEntityType(String, String, IEntityType)

取得名稱的實體類型,定義導航名稱及定義實體類型。 若未找到匹配實體類型,則回傳 null 。

IModel.FindEntityType(String)

取得帶有名字的實體。 若未找到帶有該名稱的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型有定義導覽,則回傳 null 。

IModel.FindEntityType(Type)

取得映射該實體類別的實體。 若未找到具有相同 CLR 類型的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型具有定義導覽,則回傳 null 。

IModel.FindEntityTypes(Type)

取得與該類型相符的實體類型。

IModel.FindTypeMappingConfiguration(Type)

求出給定標量 Type的約定前配置。

IModel.GetEntityTypes()

它會取得模型中定義的所有實體類型。

IModel.GetTypeMappingConfigurations()

能取得所有會議前的配置。

IModel.IsIndexerMethod(MethodInfo)

會得到一個值,表示給定 MethodInfo 的是否代表索引器存取。

IReadOnlyAnnotatable.FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 RuntimeAnnotatableBase)
IReadOnlyAnnotatable.FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

取得目前物件的所有註解。

(繼承來源 RuntimeAnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

取得目前物件的所有註解。

(繼承來源 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 RuntimeAnnotatableBase)
IReadOnlyAnnotatable.Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 AnnotatableBase)
IReadOnlyModel.FindEntityType(String, String, IReadOnlyEntityType)

取得給定基底名稱的實體類型,定義導航名稱及定義實體類型。 若未找到匹配實體類型,則回傳 null 。

IReadOnlyModel.FindEntityType(String)

會取得帶有名字的實體類型。 若未找到帶有該名稱的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型有定義導覽,則回傳 null 。

IReadOnlyModel.FindEntityType(Type, String, IReadOnlyEntityType)

取得該類型實體類型,定義導航名稱及定義實體類型。 若未找到匹配實體類型,則回傳 null 。

IReadOnlyModel.FindEntityType(Type)

取得映射該實體類別的實體。 若未找到具有相同 CLR 類型的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型具有定義導覽,則回傳 null 。

IReadOnlyModel.FindEntityTypes(Type)

取得與該類型相符的實體類型。

IReadOnlyModel.GetChangeTrackingStrategy()

取得模型中實體所使用的預設變更追蹤策略。 此策略顯示上下文如何偵測某個實體類型實例的屬性變更。

IReadOnlyModel.GetEmbeddedDiscriminatorName()

它獲得了名稱,用於 JSON 文件中嵌入的判別符屬性。 預設是「$type」。

IReadOnlyModel.GetEntityTypes()

它會取得模型中定義的所有實體類型。

IReadOnlyModel.GetPropertyAccessMode()

因此,該 PropertyAccessMode 模型中用於實體類型的屬性。

IReadOnlyModel.IsShared(Type)

會取得一個值,表示模型中共享型態實體是否使用CLR型別。

IReadOnlyModel.ModelId

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

IRuntimeModel.RelationalModel

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

IRuntimeModel.SkipDetectChanges

關於實體形狀、彼此關係,以及它們如何映射到資料庫的元資料。 模型通常是透過覆寫 OnModelCreating(ModelBuilder) 導出 DbContext的方法來建立的。

擴充方法

名稱 Description
AnnotationsToDebugString(IAnnotatable, Int32)

取得物件上所有宣告註解的除錯字串。

AreNamedDefaultConstraintsUsed(IReadOnlyModel)

回傳是否應使用命名預設約束的值。

FindDbFunction(IModel, MethodInfo)

找到一個映射到由給定 MethodInfo方法所代表的方法的函數。

FindDbFunction(IModel, String)

找到一個映射到該名稱所代表方法的函數。

FindDbFunction(IReadOnlyModel, MethodInfo)

找到一個映射到由給定 MethodInfo方法所代表的方法的函數。

FindDbFunction(IReadOnlyModel, String)

找到一個映射到該名稱所代表方法的函數。

FindEntityType(IModel, Type, String, IEntityType)

取得該類型實體類型,定義導航名稱及定義實體類型。 若未找到匹配實體類型,則回傳 null 。

FindEntityType(IModel, Type)
已淘汰.

取得映射該實體類別的實體。 若未找到具有相同 CLR 類型的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型具有定義導覽,則回傳 null 。

FindFullTextCatalog(IModel, String)

在模型中找到全文目錄,或若未找到則返回 null 。

FindFullTextCatalog(IReadOnlyModel, String)

在模型中找到全文目錄,或若未找到則返回 null 。

FindRuntimeEntityType(IModel, Type)

取得映射給定實體類別的實體,該類別可能是由實際實體類型衍生的代理。 若未找到具有相同 CLR 類型的實體類型,或該 CLR 類型被共用類型實體類型使用,或該實體類型具有定義導覽,則回傳 null 。

FindSequence(IModel, String, String)

找到一個帶有該名稱的序列。

FindSequence(IReadOnlyModel, String, String)

找到一個帶有該名稱的序列。

GetCollation(IModel)

回傳資料庫的彙整。

GetCollation(IReadOnlyModel)

回傳資料庫的彙整。

GetDatabaseMaxSize(IModel)

回傳資料庫的最大大小。

GetDatabaseMaxSize(IReadOnlyModel)

回傳資料庫的最大大小。

GetDbFunctions(IModel)

回傳模型中所有函數。

GetDbFunctions(IReadOnlyModel)

回傳模型中所有函數。

GetDefaultContainer(IModel)

會回傳預設容器名稱。

GetDefaultContainer(IReadOnlyModel)

會回傳預設容器名稱。

GetDefaultFullTextSearchLanguage(IReadOnlyModel)

在資料庫範圍內回傳全文搜尋的預設語言。

GetDefaultSchema(IModel)

回傳模型的預設架構,或 null 若未設定預設結構。

GetDefaultSchema(IReadOnlyModel)

回傳模型的預設架構,或 null 若未設定預設結構。

GetDiscriminatorInKey(IReadOnlyModel)

回傳一個值,指示實體類型判別器是否應包含在 JSON 的「id」值中。 在 EF Core 9 之前,它一直都包含在內。 從 EF Core 9 開始,預設不包含此功能。

GetEntityTypes(IModel, String)
已淘汰.

取得與名字相符的實體類型。

GetEntityTypes(IModel, Type)
已淘汰.

取得與該類型相符的實體類型。

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

取得流暢的 API 呼叫來配置模型。

GetFullTextCatalogs(IModel)

取得模型中定義的所有全文目錄。

GetFullTextCatalogs(IReadOnlyModel)

取得模型中定義的所有全文目錄。

GetHasShadowIds(IReadOnlyModel)

回傳一個值,表示是否可以從目前的組態來源設定「__id」屬性的設定中設定

GetHiLoSequenceName(IModel)

回傳名稱以用於預設 hi-lo 序列。

GetHiLoSequenceName(IReadOnlyModel)

回傳名稱以用於預設 hi-lo 序列。

GetHiLoSequenceSchema(IModel)

回傳結構以用於預設 hi-lo 序列。 UseHiLo(PropertyBuilder, String, String)

GetHiLoSequenceSchema(IReadOnlyModel)

回傳結構以用於預設 hi-lo 序列。 UseHiLo(PropertyBuilder, String, String)

GetIdentityIncrement(IModel)

回傳預設的身份遞增。

GetIdentityIncrement(IReadOnlyModel)

回傳預設的身份遞增。

GetIdentitySeed(IModel)

回傳預設的身份種子。

GetIdentitySeed(IReadOnlyModel)

回傳預設的身份種子。

GetMaxIdentifierLength(IModel)

回傳儲存識別碼允許的最大長度。

GetMaxIdentifierLength(IReadOnlyModel)

回傳儲存識別碼允許的最大長度。

GetPerformanceLevelSql(IModel)

回傳資料庫的效能等級。

GetPerformanceLevelSql(IReadOnlyModel)

回傳資料庫的效能等級。

GetProductVersion(IModel)

用來組裝這個模型的 EF Core 組合版本

GetRelationalDependencies(IModel, String)

回傳關聯服務的依賴關係。

GetRelationalModel(IModel)

回傳資料庫模型。

GetSequenceNameSuffix(IReadOnlyModel)

回傳後綴,將後綴加到自動建立序列的名稱後。

GetSequences(IModel)

回傳模型中包含的所有序列。

GetSequences(IReadOnlyModel)

回傳模型中包含的所有序列。

GetSequenceSchema(IReadOnlyModel)

回傳用於預設值產生序列的結構。 UseSequence(PropertyBuilder, String, String)

GetServiceTierSql(IModel)

回傳資料庫的服務層級。

GetServiceTierSql(IReadOnlyModel)

回傳資料庫的服務層級。

GetThroughput(IReadOnlyModel)

回傳資料庫範圍內的配置吞吐量。

GetValueGenerationStrategy(IModel)

回傳 SqlServerValueGenerationStrategy 來表示模型中鍵的屬性,除非該屬性有明確設定的策略。

GetValueGenerationStrategy(IReadOnlyModel)

回傳 SqlServerValueGenerationStrategy 來表示模型中鍵的屬性,除非該屬性有明確設定的策略。

HasEntityTypeWithDefiningNavigation(IModel, String)
已淘汰.

取得一個值,表示模型是否包含對應的實體類型及定義導覽。

HasEntityTypeWithDefiningNavigation(IModel, Type)
已淘汰.

取得一個值,表示模型是否包含對應的實體類型及定義導覽。

IsIndexerMethod(IModel, MethodInfo)

會取得一個值,表示該方法資訊是否曾向索引器存取。

IsShared(IModel, Type)

判斷模型中共享型態實體是否使用CLR型別。

ToDebugString(IModel, MetadataDebugStringOptions, Int32)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

適用於