語言

SqlServerPropertyBuilderExtensions.UseSequence 方法

定義

多載

名稱 Description
UseSequence(PropertyBuilder, String, String)

設定鍵屬性,使其使用基於序列的鍵值產生模式,以產生新實體的值,針對 SQL Server。 此方法將性質設定為 OnAdd。

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

設定鍵屬性,使其使用基於序列的鍵值產生模式,以產生新實體的值,針對 SQL Server。 此方法將性質設定為 OnAdd。

UseSequence(PropertyBuilder, String, String)

來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs

設定鍵屬性,使其使用基於序列的鍵值產生模式,以產生新實體的值,針對 SQL Server。 此方法將性質設定為 OnAdd。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseSequence(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string? name = default, string? schema = default);
static member UseSequence : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function UseSequence (propertyBuilder As PropertyBuilder, Optional name As String = Nothing, Optional schema As String = Nothing) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

正在配置的物業的建商。

name
String

序列的名稱。

schema
String

序列的架構。

傳回

同一個建構實例,這樣可以串接多個呼叫。

備註

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

適用於

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

來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs

設定鍵屬性,使其使用基於序列的鍵值產生模式,以產生新實體的值,針對 SQL Server。 此方法將性質設定為 OnAdd。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseSequence<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string? name = default, string? schema = default);
static member UseSequence : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function UseSequence(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), Optional name As String = Nothing, Optional schema As String = Nothing) As PropertyBuilder(Of TProperty)

類型參數

TProperty

配置的房產類型。

參數

propertyBuilder
PropertyBuilder<TProperty>

正在配置的物業的建商。

name
String

序列的名稱。

schema
String

序列的架構。

傳回

同一個建構實例,這樣可以串接多個呼叫。

備註

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

適用於