語言

SqlServerModelExtensions 類別

定義

針對 SQL Server 特定元資料的模型擴充方法。

[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlServerModelExtensions
public static class SqlServerModelExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerModelExtensions = class
type SqlServerModelExtensions = class
Public Module SqlServerModelExtensions
繼承
SqlServerModelExtensions
屬性

備註

更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

欄位

名稱 Description
DefaultHiLoSequenceName

這是 hi-lo 序列的預設名稱。

DefaultSequenceNameSuffix

這是套用到屬性的序列預設前綴。

方法

名稱 Description
AddFullTextCatalog(IConventionModel, String, Boolean)

為模型新增全文目錄。

AddFullTextCatalog(IMutableModel, String)

為模型新增全文目錄。

FindFullTextCatalog(IConventionModel, String)

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

FindFullTextCatalog(IModel, String)

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

FindFullTextCatalog(IMutableModel, String)

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

FindFullTextCatalog(IReadOnlyModel, String)

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

GetDatabaseMaxSize(IModel)

回傳資料庫的最大大小。

GetDatabaseMaxSize(IReadOnlyModel)

回傳資料庫的最大大小。

GetDatabaseMaxSizeConfigurationSource(IConventionModel)

回傳資料庫最大大小的 。ConfigurationSource

GetFullTextCatalogs(IConventionModel)

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

GetFullTextCatalogs(IModel)

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

GetFullTextCatalogs(IMutableModel)

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

GetFullTextCatalogs(IReadOnlyModel)

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

GetHiLoSequenceName(IModel)

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

GetHiLoSequenceName(IReadOnlyModel)

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

GetHiLoSequenceNameConfigurationSource(IConventionModel)

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

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。

RemoveFullTextCatalog(IConventionModel, String)

移除模型中的全文目錄。

RemoveFullTextCatalog(IMutableModel, String)

移除模型中的全文目錄。

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 使用模型中沒有明確設定策略的鍵屬性。

適用於