SqlServerPropertyBuilderExtensions 類別

定義

SQL Server 的特定 PropertyBuilder 擴充方法。

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

備註

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

方法

CanSetHiLoSequence(IConventionPropertyBuilder, String, String, Boolean)

傳回值,指出是否可以為 hi-lo 序列設定指定的名稱和架構。

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

傳回值,指出指定的值是否可以設定為SQL Server IDENTITY 的遞增。

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

傳回值,指出特定資料表的指定值是否可以設定為SQL Server IDENTITY 的遞增。

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

傳回值,指出指定的值是否可以設定為SQL Server IDENTITY 的種子。

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

傳回值,指出指定的值是否可以設定為SQL Server IDENTITY 的種子。

CanSetIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

傳回值,指出指定的值是否可以設定為特定資料表之SQL Server IDENTITY 的種子。

CanSetIsSparse(IConventionPropertyBuilder, Nullable<Boolean>, Boolean)

傳回值,指出當目標為SQL Server時,屬性的資料行是否可以設定為疏鬆。

CanSetSequence(IConventionPropertyBuilder, String, String, Boolean)

傳回值,指出是否可以為索引鍵值產生序列設定指定的名稱和架構。

CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, Boolean)

傳回值,指出指定的值是否可以設定為值產生策略。

CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

傳回值,指出指定的值是否可以設定為特定資料表的值產生策略。

ForSqlServerHasColumnName(PropertyBuilder, String)

設定屬性在目標SQL Server時所對應的資料行。

ForSqlServerHasColumnName<TProperty>(PropertyBuilder<TProperty>, String)

設定屬性在目標SQL Server時所對應的資料行。

ForSqlServerHasColumnType(PropertyBuilder, String)

設定以目標SQL Server為目標時,屬性所對應之資料行的資料類型。 這應該是完整的類型名稱,包括精確度、小數位數、長度等。

ForSqlServerHasColumnType<TProperty>(PropertyBuilder<TProperty>, String)

設定以目標SQL Server為目標時,屬性所對應之資料行的資料類型。 這應該是完整的類型名稱,包括精確度、小數位數、長度等。

ForSqlServerHasComputedColumnSql(PropertyBuilder, String)

設定屬性以SQL Server為目標時對應至計算資料行。

ForSqlServerHasComputedColumnSql<TProperty>(PropertyBuilder<TProperty>, String)

設定屬性以SQL Server為目標時對應至計算資料行。

ForSqlServerHasDefaultValue(PropertyBuilder, Object)

設定以目標SQL Server為目標時,屬性所對應之資料行的預設值。

ForSqlServerHasDefaultValue<TProperty>(PropertyBuilder<TProperty>, Object)

設定以目標SQL Server為目標時,屬性所對應之資料行的預設值。

ForSqlServerHasDefaultValueSql(PropertyBuilder, String)

設定屬性在目標SQL Server時所對應之資料行的預設值運算式。

ForSqlServerHasDefaultValueSql<TProperty>(PropertyBuilder<TProperty>, String)

設定屬性在目標SQL Server時所對應之資料行的預設值運算式。

ForSqlServerHasHiLoSequence(IConventionPropertyBuilder, String, String, Boolean)
已淘汰.

設定用於 hi-lo 模式的資料庫序列,以在目標SQL Server時產生索引鍵屬性的值。

ForSqlServerHasIdentityIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)
已淘汰.

設定SQL SERVER IDENTITY 的遞增。

ForSqlServerHasIdentitySeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)
已淘汰.

設定SQL Server IDENTITY 的種子。

ForSqlServerHasValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, Boolean)
已淘汰.

以SQL Server為目標時,設定索引鍵屬性的值產生策略。

ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)
已淘汰.

設定索引鍵屬性,以在目標為SQL Server時,使用序列型 hi-lo 模式來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

ForSqlServerUseSequenceHiLo<TProperty>(PropertyBuilder<TProperty>, String, String)
已淘汰.

設定索引鍵屬性,以在目標為SQL Server時,使用序列型 hi-lo 模式來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

HasHiLoSequence(IConventionPropertyBuilder, String, String, Boolean)

設定用於 hi-lo 模式的資料庫序列,以在目標SQL Server時產生索引鍵屬性的值。

HasIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

設定SQL SERVER IDENTITY 的遞增。

HasIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

為特定資料表設定SQL Server IDENTITY 的遞增。

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

設定SQL Server IDENTITY 的種子。

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, Boolean)

設定SQL Server IDENTITY 的種子。

HasIdentityColumnSeed(IConventionPropertyBuilder, Nullable<Int64>, StoreObjectIdentifier, Boolean)

為特定資料表設定SQL Server IDENTITY 的種子。

HasSequence(IConventionPropertyBuilder, String, String, Boolean)

設定用於索引鍵值產生模式的資料庫序列,以在目標SQL Server時產生索引鍵屬性的值。

HasValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, Boolean)

以SQL Server為目標時,設定索引鍵屬性的值產生策略。

HasValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

針對特定資料表的目標SQL Server時,設定索引鍵屬性的值產生策略。

IsSparse(IConventionPropertyBuilder, Nullable<Boolean>, Boolean)

設定以SQL Server為目標時,屬性的資料行是否建立為疏鬆。

IsSparse(PropertyBuilder, Boolean)

設定以SQL Server為目標時,屬性的資料行是否建立為疏鬆。

IsSparse<TProperty>(PropertyBuilder<TProperty>, Boolean)

設定以SQL Server為目標時,屬性的資料行是否建立為疏鬆。

UseHiLo(PropertyBuilder, String, String)

設定索引鍵屬性,以在目標為SQL Server時,使用序列型 hi-lo 模式來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseHiLo<TProperty>(PropertyBuilder<TProperty>, String, String)

設定索引鍵屬性,以在目標為SQL Server時,使用序列型 hi-lo 模式來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseIdentityColumn(ColumnBuilder, Int64, Int32)

設定索引鍵資料行,以在以SQL Server為目標時,使用 SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseIdentityColumn(PropertyBuilder, Int32, Int32)

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseIdentityColumn(PropertyBuilder, Int64, Int32)

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseIdentityColumn<TProperty>(ColumnBuilder<TProperty>, Int64, Int32)

設定索引鍵資料行,以在以SQL Server為目標時,使用 SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseIdentityColumn<TProperty>(PropertyBuilder<TProperty>, Int32, Int32)

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseIdentityColumn<TProperty>(PropertyBuilder<TProperty>, Int64, Int32)

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseSequence(PropertyBuilder, String, String)

將索引鍵屬性設定為使用序列型索引鍵值產生模式,以在以SQL Server為目標時產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseSequence<TProperty>(PropertyBuilder<TProperty>, String, String)

將索引鍵屬性設定為使用序列型索引鍵值產生模式,以在以SQL Server為目標時產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseSqlServerIdentityColumn(PropertyBuilder)

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseSqlServerIdentityColumn(PropertyBuilder, Int32, Int32)
已淘汰.

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>)

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

UseSqlServerIdentityColumn<TProperty>(PropertyBuilder<TProperty>, Int32, Int32)
已淘汰.

設定索引鍵屬性,以在目標SQL Server時,使用SQL Server IDENTITY 功能來產生新實體的值。 這個方法會將 屬性設定為 OnAdd

適用於