語言

SqlServerPropertyExtensions 類別

定義

針對 SQL Server 特定元資料的屬性擴充方法。

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

備註

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

方法

名稱 Description
FindHiLoSequence(IProperty, StoreObjectIdentifier)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindHiLoSequence(IProperty)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindHiLoSequence(IReadOnlyProperty, StoreObjectIdentifier)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindHiLoSequence(IReadOnlyProperty)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindSequence(IProperty, StoreObjectIdentifier)

在模型中尋找用於關鍵值產生模式的 。ISequence

FindSequence(IProperty)

在模型中尋找用於關鍵值產生模式的 。ISequence

FindSequence(IReadOnlyProperty, StoreObjectIdentifier)

在模型中尋找用於關鍵值產生模式的 。ISequence

FindSequence(IReadOnlyProperty)

在模型中尋找用於關鍵值產生模式的 。ISequence

GetHiLoSequenceName(IProperty, StoreObjectIdentifier)

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

GetHiLoSequenceName(IProperty)

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

GetHiLoSequenceName(IReadOnlyProperty, StoreObjectIdentifier)

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

GetHiLoSequenceName(IReadOnlyProperty)

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

GetHiLoSequenceNameConfigurationSource(IConventionProperty)

回傳 hi-lo ConfigurationSource 序列名稱。

GetHiLoSequenceSchema(IProperty, StoreObjectIdentifier)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchema(IProperty)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchema(IReadOnlyProperty, StoreObjectIdentifier)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchema(IReadOnlyProperty)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchemaConfigurationSource(IConventionProperty)

回傳 hi-lo ConfigurationSource 序列結構。

GetIdentityIncrement(IProperty, StoreObjectIdentifier)

回傳身份遞增。

GetIdentityIncrement(IProperty)

回傳身份遞增。

GetIdentityIncrement(IReadOnlyProperty, StoreObjectIdentifier)

回傳身份遞增。

GetIdentityIncrement(IReadOnlyProperty)

回傳身份遞增。

GetIdentityIncrement(IReadOnlyRelationalPropertyOverrides)

回傳身份遞增。

GetIdentityIncrementConfigurationSource(IConventionProperty, StoreObjectIdentifier)

回傳特定 ConfigurationSource 資料表的身份增量。

GetIdentityIncrementConfigurationSource(IConventionProperty)

回傳 以 ConfigurationSource 取得身份遞增。

GetIdentityIncrementConfigurationSource(IConventionRelationalPropertyOverrides)

回傳特定 ConfigurationSource 資料表的身份增量。

GetIdentitySeed(IProperty, StoreObjectIdentifier)

回傳身份種子。

GetIdentitySeed(IProperty)

回傳身份種子。

GetIdentitySeed(IReadOnlyProperty, StoreObjectIdentifier)

回傳身份種子。

GetIdentitySeed(IReadOnlyProperty)

回傳身份種子。

GetIdentitySeed(IReadOnlyRelationalPropertyOverrides)

回傳身份種子。

GetIdentitySeedConfigurationSource(IConventionProperty, StoreObjectIdentifier)

回傳 ConfigurationSource 特定資料表的身份種子。

GetIdentitySeedConfigurationSource(IConventionProperty)

回傳 的 ConfigurationSource 身份種子。

GetIdentitySeedConfigurationSource(IConventionRelationalPropertyOverrides)

回傳 ConfigurationSource 特定資料表的身份種子。

GetIsHiddenConfigurationSource(IConventionProperty)

回傳 , ConfigurationSource 表示該屬性欄位是否隱藏。

GetIsSparseConfigurationSource(IConventionProperty)

回傳 for ConfigurationSource 屬性欄位是否稀疏。

GetSequenceName(IReadOnlyProperty, StoreObjectIdentifier)

回傳名稱用於關鍵值產生序列。

GetSequenceName(IReadOnlyProperty)

回傳名稱用於關鍵值產生序列。

GetSequenceNameConfigurationSource(IConventionProperty)

回傳 鍵值產生序列名稱的 。ConfigurationSource

GetSequenceSchema(IReadOnlyProperty, StoreObjectIdentifier)

回傳用於關鍵值產生序列的結構。

GetSequenceSchema(IReadOnlyProperty)

回傳用於關鍵值產生序列的結構。

GetSequenceSchemaConfigurationSource(IConventionProperty)

回傳 鍵 ConfigurationSource 值產生序列結構。

GetValueGenerationStrategy(IProperty, StoreObjectIdentifier)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

若該性質未設定策略,則將從 中取 IModel出策略。

GetValueGenerationStrategy(IProperty)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

若該性質未設定策略,則將從 中取 IModel出策略。

GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyProperty)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategyConfigurationSource(IConventionProperty, StoreObjectIdentifier)

回傳 , ConfigurationSource 針對 SqlServerValueGenerationStrategy 特定表格。

GetValueGenerationStrategyConfigurationSource(IConventionProperty)

將 返回 ConfigurationSourceSqlServerValueGenerationStrategy。

GetValueGenerationStrategyConfigurationSource(IConventionRelationalPropertyOverrides)

回傳 , ConfigurationSource 針對 SqlServerValueGenerationStrategy 特定表格。

IsCompatibleWithValueGeneration(IProperty)

回傳一個值,表示該性質是否與任一 SqlServerValueGenerationStrategy相容。

IsCompatibleWithValueGeneration(IReadOnlyProperty)

回傳一個值,表示該性質是否與任一 SqlServerValueGenerationStrategy相容。

IsHidden(IReadOnlyProperty)

回傳一個值,指示該屬性的欄位是否以 SQL Server HIDDEN 標誌定義,該欄位將該欄位排除在結果之外SELECT *。

IsSparse(IReadOnlyProperty, StoreObjectIdentifier)

回傳一個值,表示該屬性欄位是否為稀疏。

IsSparse(IReadOnlyProperty)

回傳一個值,表示該屬性欄位是否為稀疏。

SetHiLoSequenceName(IConventionProperty, String, Boolean)

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

SetHiLoSequenceName(IMutableProperty, String)

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

SetHiLoSequenceSchema(IConventionProperty, String, Boolean)

設定 schema 來用於 hi-lo 序列。

SetHiLoSequenceSchema(IMutableProperty, String)

設定 schema 來用於 hi-lo 序列。

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, Boolean)

設定單位增量。

SetIdentityIncrement(IConventionProperty, Nullable<Int32>, StoreObjectIdentifier, Boolean)

設定特定資料表的單位增量。

SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)

設定特定資料表的單位增量。

SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)

設定特定資料表的單位增量。

SetIdentityIncrement(IMutableProperty, Nullable<Int32>)

設定單位增量。

SetIdentityIncrement(IMutableRelationalPropertyOverrides, Nullable<Int32>)

設定特定資料表的單位增量。

SetIdentitySeed(IConventionProperty, Nullable<Int32>, Boolean)

設定身份種子。

SetIdentitySeed(IConventionProperty, Nullable<Int64>, Boolean)

設定身份種子。

SetIdentitySeed(IConventionProperty, Nullable<Int64>, StoreObjectIdentifier, Boolean)

設定特定資料表的身份種子。

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

設定特定資料表的身份種子。

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

設定身份種子。

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

設定特定資料表的身份種子。

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

設定身份種子。

SetIdentitySeed(IMutableRelationalPropertyOverrides, Nullable<Int64>)

設定特定資料表的身份種子。

SetIsHidden(IConventionProperty, Nullable<Boolean>, Boolean)

設定一個值,表示屬性欄位是否以 SQL Server HIDDEN 標誌定義。

SetIsHidden(IMutableProperty, Nullable<Boolean>)

設定一個值,表示屬性欄位是否以 SQL Server HIDDEN 標誌定義。

SetIsSparse(IConventionProperty, Nullable<Boolean>, Boolean)

設定一個值,表示該屬性的欄位是否稀疏。

SetIsSparse(IMutableProperty, Nullable<Boolean>)

設定一個值,表示該屬性的欄位是否稀疏。

SetSequenceName(IConventionProperty, String, Boolean)

設定名稱用於關鍵值產生序列。

SetSequenceName(IMutableProperty, String)

設定名稱用於關鍵值產生序列。

SetSequenceSchema(IConventionProperty, String, Boolean)

設定用於鍵值產生序列的結構。

SetSequenceSchema(IMutableProperty, String)

設定用於鍵值產生序列的結構。

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

設定 屬性 SqlServerValueGenerationStrategy 的 。

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

為特定資料表設定屬性的 。SqlServerValueGenerationStrategy

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

為特定資料表設定屬性的 。SqlServerValueGenerationStrategy

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

為特定資料表設定屬性的 。SqlServerValueGenerationStrategy

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

設定 屬性 SqlServerValueGenerationStrategy 的 。

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

為特定資料表設定屬性的 。SqlServerValueGenerationStrategy

適用於