IMutableModel 介面

定義

實體形狀、實體之間的關聯性,以及它們對應至資料庫的中繼資料。 模型通常是藉由覆 OnModelCreating(ModelBuilder) 寫衍生 DbContext 上的 方法所建立。

public interface IMutableModel : Microsoft.EntityFrameworkCore.Metadata.IModel, Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable
public interface IMutableModel : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel
type IMutableModel = interface
    interface IModel
    interface IAnnotatable
    interface IMutableAnnotatable
type IMutableModel = interface
    interface IReadOnlyModel
    interface IReadOnlyAnnotatable
    interface IMutableAnnotatable
Public Interface IMutableModel
Implements IModel, IMutableAnnotatable
Public Interface IMutableModel
Implements IMutableAnnotatable, IReadOnlyModel
實作

備註

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

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
ModelDependencies

執行時間服務相依性。

(繼承來源 IModel)
ModelId

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

(繼承來源 IReadOnlyModel)

方法

AddAnnotation(String, Object)

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

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

將批註加入物件。

(繼承來源 IMutableAnnotatable)
AddEntityType(String)

將預設類型的實體類型新增至模型。

AddEntityType(String, String, IMutableEntityType)

將具有定義導覽的擁有實體類型新增至模型。

AddEntityType(String, Type)

將共用類型實體類型新增至模型。

AddEntityType(Type)

將實體類型加入至模型。

AddEntityType(Type, String, IMutableEntityType)

將具有定義導覽的擁有實體類型新增至模型。

AddIgnored(String)

將指定的實體類型名稱標示為忽略,防止慣例將相符的實體類型新增至模型。

AddIgnored(Type)

將指定的實體類型標示為忽略,防止慣例將相符的實體類型新增至模型。

AddOwned(Type)

將指定的實體類型標示為擁有,表示探索到的相符實體類型應設定為擁有。

AddOwnedEntityType(String)

將預設類型的擁有實體類型新增至模型。

AddOwnedEntityType(String, Type)

將擁有的共用類型實體類型新增至模型。

AddOwnedEntityType(Type)

將擁有的實體類型新增至模型。

AddQueryType(Type)

將查詢類型加入至模型。

AddRuntimeAnnotation(String, Object)

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

(繼承來源 IAnnotatable)
AddShared(Type)

將指定的實體類型標示為共用,指出探索到的相符實體類型應該設定為共用類型實體類型時。

AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
DelayConventions()

防止在修改元資料層面時立即執行慣例。 處置傳回的物件之後,將會執行所有延遲慣例。

FinalizeModel()

強制在模型上進行後處理,使其可供執行時間使用。 這個後置處理會在使用 OnModelCreating(ModelBuilder) 時自動發生;這個方法允許在無法自動執行的情況下明確執行。

FindAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
FindEntityType(String)

取得具有指定名稱的實體。 null如果找不到具有指定名稱的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

FindEntityType(String, String, IEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

(繼承來源 IModel)
FindEntityType(String, String, IMutableEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

FindEntityType(String, String, IReadOnlyEntityType)

取得指定基底名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

(繼承來源 IReadOnlyModel)
FindEntityType(Type)

取得對應指定實體類別的實體。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

FindEntityType(Type, String, IEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

(繼承來源 IModel)
FindEntityType(Type, String, IMutableEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

FindEntityType(Type, String, IReadOnlyEntityType)

取得指定型別的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

(繼承來源 IReadOnlyModel)
FindEntityTypes(Type)

取得符合指定型別的實體類型。

FindLeastDerivedEntityTypes(Type, Func<IReadOnlyEntityType,Boolean>)

傳回對應至指定類型中最小衍生類型的實體類型。

FindRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(繼承來源 IAnnotatable)
FindRuntimeEntityType(Type)

取得對應指定實體類別的實體,其中 類別可能是衍生自實際實體類型的 Proxy。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

(繼承來源 IModel)
FindTypeMappingConfiguration(Type)

尋找指定純量 Type 的預先慣例組態。

(繼承來源 IModel)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IReadOnlyAnnotatable)
GetChangeTrackingStrategy()

取得模型中實體所使用的預設變更追蹤策略。 此策略指出內容如何偵測實體類型實例的屬性變更。

(繼承來源 IReadOnlyModel)
GetEntityTypes()

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

GetModelDependencies()

取得執行時間服務相依性。

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

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

(繼承來源 IAnnotatable)
GetProductVersion()

取得用來建置此模型的 EF Core 元件版本。

(繼承來源 IReadOnlyModel)
GetPropertyAccessMode()

PropertyAccessMode取得用於這個模型中實體類型屬性的 。

(繼承來源 IReadOnlyModel)
GetRuntimeAnnotations()

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

(繼承來源 IAnnotatable)
GetTypeMappingConfigurations()

取得所有預先慣例組態。

(繼承來源 IModel)
IsIgnored(String)

指出是否忽略指定的實體類型名稱。

IsIgnored(Type)

指出是否忽略指定的實體類型名稱。

IsIndexerMethod(MethodInfo)

取得值,指出指定的 MethodInfo 是否表示索引子存取。

(繼承來源 IModel)
IsOwned(Type)

傳回值,指出使用指定型別的實體類型是否應在慣例探索時設定為擁有的類型。

IsShared(Type)

取得值,指出模型中的共用類型實體是否使用 CLR 類型。

(繼承來源 IReadOnlyModel)
RemoveAnnotation(String)

從這個 物件中移除指定的注釋。

(繼承來源 IMutableAnnotatable)
RemoveEntityType(IMutableEntityType)

從模型移除實體類型。

RemoveEntityType(String)

從模型移除實體類型,而不定義導覽。

RemoveEntityType(String, String, IMutableEntityType)

移除具有指定類型的實體類型、定義導覽名稱和定義實體類型

RemoveEntityType(Type)

從模型移除實體類型。

RemoveEntityType(Type, String, IMutableEntityType)

移除具有指定類型的實體類型、定義導覽名稱和定義實體類型

RemoveIgnored(String)

移除忽略的實體類型名稱。

RemoveIgnored(Type)

移除忽略的實體類型。

RemoveOwned(Type)

移除指定的擁有類型,指出探索到的相符實體類型不應該設定為擁有。

RemoveRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
RemoveShared(Type)

將指定的類型標示為未共用,表示探索到的相符實體類型不應設定為共用類型實體類型時。

SetAnnotation(String, Object)

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

(繼承來源 IMutableAnnotatable)
SetChangeTrackingStrategy(Nullable<ChangeTrackingStrategy>)

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

SetOrRemoveAnnotation(String, Object)

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

(繼承來源 IMutableAnnotatable)
SetPropertyAccessMode(Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於此模型中所有實體類型之屬性的 。

SetRuntimeAnnotation(String, Object)

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

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

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

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

(繼承來源 IReadOnlyModel)

擴充方法

GetDefaultContainer(IModel)

傳回預設容器名稱。

GetDefaultContainer(IReadOnlyModel)

傳回預設容器名稱。

GetThroughput(IReadOnlyModel)

傳回資料庫範圍中布建的輸送量。

SetDefaultContainer(IMutableModel, String)

設定預設容器名稱。

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

在資料庫範圍設定布建的輸送量。

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

Scaffolding(IModel)

實體形狀、實體之間的關聯性,以及它們對應至資料庫的中繼資料。 模型通常是藉由覆 OnModelCreating(ModelBuilder) 寫衍生 DbContext 上的 方法所建立。

FindEntityType(IModel, Type)
已過時。.

取得對應指定實體類別的實體。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

FindEntityType(IModel, Type, String, IEntityType)

取得指定型別的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

FindRuntimeEntityType(IModel, Type)

取得對應指定實體類別的實體,其中 類別可能是衍生自實際實體類型的 Proxy。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

GetChangeTrackingStrategy(IModel)

取得模型中實體所使用的預設變更追蹤策略。 此策略指出內容如何偵測實體類型實例的屬性變更。

GetEntityTypes(IModel, String)
已過時。.

取得符合指定名稱的實體類型。

GetEntityTypes(IModel, Type)
已過時。.

取得符合指定型別的實體類型。

GetProductVersion(IModel)

取得用來建置此模型的 EF Core 元件版本

GetPropertyAccessMode(IModel)

PropertyAccessMode取得用於這個模型中實體類型屬性的 。

請注意,個別實體類型可以覆寫此存取模式,而實體類型的個別屬性可以覆寫實體類型上設定的存取模式。 此處傳回的值將用於未指定覆寫的任何屬性。

HasEntityTypeWithDefiningNavigation(IModel, String)
已過時。.

取得值,指出模型是否包含具有定義導覽的對應實體類型。

HasEntityTypeWithDefiningNavigation(IModel, Type)
已過時。.

取得值,指出模型是否包含具有定義導覽的對應實體類型。

IsIndexerMethod(IModel, MethodInfo)

取得值,指出指定的 MethodInfo 是否重新指定索引子存取。

IsShared(IModel, Type)

取得模型中的共用類型實體是否使用 CLR 類型。

ToDebugString(IModel, MetadataDebugStringOptions, Int32)

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

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

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

將批註加入物件。

GetAnnotation(IMutableAnnotatable, String)

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

GetOrAddAnnotation(IMutableAnnotatable, String, String)

取得具有指定索引鍵的現有注釋,如果不存在,則加入新的批註。

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

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

AddIgnored(IMutableModel, Type)

將指定的實體類型標示為忽略,防止慣例將相符的實體類型新增至模型。

AddOwned(IMutableModel, Type)

將指定的實體類型標示為擁有,表示探索到的相符實體類型應設定為擁有。

AddShared(IMutableModel, Type)

將指定的實體類型標示為共用,指出探索到的相符實體類型應該設定為共用類型實體類型時。

FinalizeModel(IMutableModel)

強制在模型上進行後處理,使其可供執行時間使用。 這個後置處理會在使用 OnModelCreating(ModelBuilder) 時自動發生;這個方法允許在無法自動執行的情況下明確執行。

FindEntityType(IMutableModel, Type)

取得對應指定實體類別的實體。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

FindEntityType(IMutableModel, Type, String, IMutableEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

FindLeastDerivedEntityTypes(IMutableModel, Type, Func<IMutableEntityType,Boolean>)

傳回對應至指定中最小衍生型別的實體型別。

GetEntityTypes(IMutableModel, String)
已過時。.

取得符合指定名稱的實體類型。

GetEntityTypes(IMutableModel, Type)
已過時。.

取得符合指定型別的實體類型。

GetOrAddEntityType(IMutableModel, String)

取得具有指定名稱的實體類型,如果找不到任何實體類型,則加入新的實體類型。

GetOrAddEntityType(IMutableModel, Type)

取得具有指定 CLR 類別的實體類型,如果找不到任何實體類型,則加入新的實體類型。

IsIgnored(IMutableModel, Type)

指出是否忽略指定的實體類型名稱。

IsOwned(IMutableModel, Type)

傳回值,指出使用指定型別的實體類型是否應在慣例探索時設定為擁有的類型。

RemoveEntityType(IMutableModel, IMutableEntityType)

從模型移除實體類型。

RemoveEntityType(IMutableModel, String)

從模型移除實體類型,而不定義導覽。

RemoveEntityType(IMutableModel, String, String, IMutableEntityType)

從模型移除具有定義導覽的實體類型。

RemoveEntityType(IMutableModel, Type)

從模型移除實體類型。

RemoveEntityType(IMutableModel, Type, String, IMutableEntityType)

從模型移除具有定義導覽的實體類型。

RemoveIgnored(IMutableModel, Type)

移除忽略的實體類型。

RemoveOwned(IMutableModel, Type)

移除指定的擁有類型,指出探索到的相符實體類型不應該設定為擁有。

SetChangeTrackingStrategy(IMutableModel, ChangeTrackingStrategy)

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

SetChangeTrackingStrategy(IMutableModel, Nullable<ChangeTrackingStrategy>)

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

SetPropertyAccessMode(IMutableModel, Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於此模型中所有實體類型之屬性的 。

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

SetPropertyAccessMode(IMutableModel, Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於此模型中所有實體類型之屬性的 。

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

Relational(IModel)

取得模型的關係資料庫特定中繼資料。

Relational(IMutableModel)

取得模型的關係資料庫特定中繼資料。

AddDbFunction(IMutableModel, MethodInfo)

IMutableDbFunction建立對應至指定方法的 。

AddDbFunction(IMutableModel, String, Type)

建立函式。

AddSequence(IMutableModel, String, String)

傳回 IMutableSequence 具有指定架構中指定名稱的現有 ,或建立具有指定名稱和架構的新序列。

FindDbFunction(IModel, MethodInfo)

尋找對應至指定 MethodInfo 所表示之 方法的函式。

FindDbFunction(IModel, String)

尋找對應至指定名稱所表示之方法的函式。

FindDbFunction(IMutableModel, MethodInfo)

尋找對應至指定 MethodInfo 所表示之 方法的函式。

FindDbFunction(IMutableModel, String)

尋找對應至指定名稱所表示之方法的函式。

FindDbFunction(IReadOnlyModel, MethodInfo)

尋找對應至指定 MethodInfo 所表示之 方法的函式。

FindDbFunction(IReadOnlyModel, String)

尋找對應至指定名稱所表示之方法的函式。

FindSequence(IModel, String, String)

尋找具有指定名稱的序列。

FindSequence(IMutableModel, String, String)

尋找具有指定名稱的序列。

FindSequence(IReadOnlyModel, String, String)

尋找具有指定名稱的序列。

GetCollation(IModel)

傳回資料庫定序。

GetCollation(IReadOnlyModel)

傳回資料庫定序。

GetDbFunctions(IModel)

傳回模型中包含的所有函式。

GetDbFunctions(IMutableModel)

傳回模型中包含的所有函式。

GetDbFunctions(IReadOnlyModel)

傳回模型中包含的所有函式。

GetDefaultSchema(IModel)

傳回要用於模型的預設架構,如果沒有設定,則 null 傳回 。

GetDefaultSchema(IReadOnlyModel)

傳回要用於模型的預設架構,如果沒有設定,則 null 傳回 。

GetMaxIdentifierLength(IModel)

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

GetMaxIdentifierLength(IReadOnlyModel)

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

GetRelationalModel(IModel)

傳回資料庫模型。

GetSequences(IModel)

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

GetSequences(IMutableModel)

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

GetSequences(IReadOnlyModel)

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

RemoveDbFunction(IMutableModel, MethodInfo)

移除對應至指定 MethodInfo 所表示之 方法的函式。

RemoveDbFunction(IMutableModel, String)

移除對應至指定 MethodInfo 所表示之 方法的函式。

RemoveSequence(IMutableModel, String, String)

IMutableSequence移除具有指定名稱的 。

SetCollation(IMutableModel, String)

設定資料庫定序。

SetDefaultSchema(IMutableModel, String)

設定預設架構。

SetMaxIdentifierLength(IMutableModel, Nullable<Int32>)

設定存放區識別碼允許的最大長度。

Sqlite(IModel)

取得模型的 SQLite 特定中繼資料。

Sqlite(IMutableModel)

取得模型的 SQLite 特定中繼資料。

SqlServer(IModel)

取得模型的SQL Server特定中繼資料。

SqlServer(IMutableModel)

取得模型的SQL Server特定中繼資料。

GetDatabaseMaxSize(IModel)

傳回資料庫的大小上限。

GetDatabaseMaxSize(IReadOnlyModel)

傳回資料庫的大小上限。

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)

傳回預設識別種子。

GetPerformanceLevelSql(IModel)

傳回資料庫的效能層級。

GetPerformanceLevelSql(IReadOnlyModel)

傳回資料庫的效能層級。

GetSequenceNameSuffix(IReadOnlyModel)

傳回要附加至自動建立序列名稱的尾碼。

GetSequenceSchema(IReadOnlyModel)

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

GetServiceTierSql(IModel)

傳回資料庫的服務層級。

GetServiceTierSql(IReadOnlyModel)

傳回資料庫的服務層級。

GetValueGenerationStrategy(IModel)

SqlServerValueGenerationStrategy傳回 用於模型中索引鍵屬性的 ,除非屬性已明確設定策略。

GetValueGenerationStrategy(IReadOnlyModel)

SqlServerValueGenerationStrategy傳回 用於模型中索引鍵屬性的 ,除非屬性已明確設定策略。

SetDatabaseMaxSize(IMutableModel, String)

設定資料庫的大小上限。

SetHiLoSequenceName(IMutableModel, String)

設定要用於預設 hi-lo 序列的名稱。

SetHiLoSequenceSchema(IMutableModel, String)

設定要用於預設 hi-lo 序列的架構。

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

設定預設識別遞增。

SetIdentitySeed(IMutableModel, Nullable<Int32>)

設定預設身分識別種子。

SetIdentitySeed(IMutableModel, Nullable<Int64>)

設定預設身分識別種子。

SetPerformanceLevelSql(IMutableModel, String)

設定資料庫的效能層級。

SetSequenceNameSuffix(IMutableModel, String)

設定要附加至自動建立序列名稱的後置詞。

SetSequenceSchema(IMutableModel, String)

設定要用於預設索引鍵值產生序列的架構。

SetServiceTierSql(IMutableModel, String)

設定資料庫的服務層級。

SetValueGenerationStrategy(IMutableModel, Nullable<SqlServerValueGenerationStrategy>)

SqlServerValueGenerationStrategy設定要用於模型中未明確設定策略之索引鍵屬性的 。

適用於