SqlServerComplexTypePropertyBuilderExtensions 類別

定義

SQL Server 的特定 ComplexTypePropertyBuilder 擴充方法。

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

備註

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

方法

IsSparse(ComplexTypePropertyBuilder, Boolean)

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

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

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

UseHiLo(ComplexTypePropertyBuilder, String, String)

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

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

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

UseIdentityColumn(ComplexTypePropertyBuilder, Int32, Int32)

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

UseIdentityColumn(ComplexTypePropertyBuilder, Int64, Int32)

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

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

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

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

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

UseSequence(ComplexTypePropertyBuilder, String, String)

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

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

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

適用於