SqlServerModelExtensions 類別

定義

SQL Server特定中繼資料的模型擴充方法。

public static class SqlServerModelExtensions
type SqlServerModelExtensions = class
Public Module SqlServerModelExtensions
繼承
SqlServerModelExtensions

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及存取SQL Server和Azure SQL資料庫

欄位

DefaultHiLoSequenceName

hi-lo 序列的預設名稱。

DefaultSequenceNameSuffix

套用至屬性之序列的預設前置詞。

方法

GetDatabaseMaxSize(IModel)

傳回資料庫的大小上限。

GetDatabaseMaxSize(IReadOnlyModel)

傳回資料庫的大小上限。

GetDatabaseMaxSizeConfigurationSource(IConventionModel)

ConfigurationSource 回資料庫大小上限的 。

GetHiLoSequenceName(IModel)

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

GetHiLoSequenceName(IReadOnlyModel)

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

GetHiLoSequenceNameConfigurationSource(IConventionModel)

ConfigurationSource 回預設 hi-lo 序列名稱的 。

GetHiLoSequenceSchema(IModel)

傳回要用於預設 hi-lo 序列的架構。 UseHiLo(PropertyBuilder, String, String)

GetHiLoSequenceSchema(IReadOnlyModel)

傳回要用於預設 hi-lo 序列的架構。 UseHiLo(PropertyBuilder, String, String)

GetHiLoSequenceSchemaConfigurationSource(IConventionModel)

ConfigurationSource 回預設 hi-lo 序列架構的 。

GetIdentityIncrement(IModel)

傳回預設識別增量。

GetIdentityIncrement(IReadOnlyModel)

傳回預設識別增量。

GetIdentityIncrementConfigurationSource(IConventionModel)

ConfigurationSource 回預設識別增量的 。

GetIdentitySeed(IModel)

傳回預設身分識別種子。

GetIdentitySeed(IReadOnlyModel)

傳回預設身分識別種子。

GetIdentitySeedConfigurationSource(IConventionModel)

ConfigurationSource 回預設架構的 。

GetPerformanceLevelSql(IModel)

傳回資料庫的效能層級。

GetPerformanceLevelSql(IReadOnlyModel)

傳回資料庫的效能層級。

GetPerformanceLevelSqlConfigurationSource(IConventionModel)

ConfigurationSource 回資料庫效能層級的 。

GetSequenceNameSuffix(IReadOnlyModel)

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

GetSequenceNameSuffixConfigurationSource(IConventionModel)

ConfigurationSource 回預設值產生序列名稱尾碼的 。

GetSequenceSchema(IReadOnlyModel)

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

GetSequenceSchemaConfigurationSource(IConventionModel)

ConfigurationSource 回預設索引鍵值產生順序架構的 。

GetServiceTierSql(IModel)

傳回資料庫的服務層級。

GetServiceTierSql(IReadOnlyModel)

傳回資料庫的服務層級。

GetServiceTierSqlConfigurationSource(IConventionModel)

ConfigurationSource 回資料庫之服務層級的 。

GetValueGenerationStrategy(IModel)

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

GetValueGenerationStrategy(IReadOnlyModel)

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

GetValueGenerationStrategyConfigurationSource(IConventionModel)

ConfigurationSource 回預設 SqlServerValueGenerationStrategy 的 。

SetDatabaseMaxSize(IConventionModel, String, Boolean)

設定資料庫的大小上限。

SetDatabaseMaxSize(IMutableModel, String)

設定資料庫的大小上限。

SetHiLoSequenceName(IConventionModel, String, Boolean)

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

SetHiLoSequenceName(IMutableModel, String)

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

SetHiLoSequenceSchema(IConventionModel, String, Boolean)

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

SetHiLoSequenceSchema(IMutableModel, String)

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

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

設定預設識別增量。

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

設定預設識別增量。

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

設定預設身分識別種子。

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

設定預設身分識別種子。

SetIdentitySeed(IMutableModel, Nullable<Int32>)

設定預設身分識別種子。

SetIdentitySeed(IMutableModel, Nullable<Int64>)

設定預設身分識別種子。

SetPerformanceLevelSql(IConventionModel, String, Boolean)

設定資料庫的效能層級。

SetPerformanceLevelSql(IMutableModel, String)

設定資料庫的效能層級。

SetSequenceNameSuffix(IConventionModel, String, Boolean)

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

SetSequenceNameSuffix(IMutableModel, String)

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

SetSequenceSchema(IConventionModel, String, Boolean)

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

SetSequenceSchema(IMutableModel, String)

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

SetServiceTierSql(IConventionModel, String, Boolean)

設定資料庫的服務層級。

SetServiceTierSql(IMutableModel, String)

設定資料庫的服務層級。

SetValueGenerationStrategy(IConventionModel, Nullable<SqlServerValueGenerationStrategy>, Boolean)

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

SetValueGenerationStrategy(IMutableModel, Nullable<SqlServerValueGenerationStrategy>)

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

適用於