共用方式為


SqlServerPropertyBuilderExtensions.ForSqlServerUseSequenceHiLo 方法

定義

多載

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

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

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

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

ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

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

警告

Use UseHiLo

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqlServerUseSequenceHiLo (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string name = default, string schema = default);
[System.Obsolete("Use UseHiLo")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqlServerUseSequenceHiLo (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string name = default, string schema = default);
static member ForSqlServerUseSequenceHiLo : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
[<System.Obsolete("Use UseHiLo")>]
static member ForSqlServerUseSequenceHiLo : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function ForSqlServerUseSequenceHiLo (propertyBuilder As PropertyBuilder, Optional name As String = Nothing, Optional schema As String = Nothing) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

要設定之屬性的產生器。

name
String

序列的名稱。

schema
String

序列的架構。

傳回

相同的產生器實例,以便鏈結多個呼叫。

屬性

適用於

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

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

警告

Use UseHiLo

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqlServerUseSequenceHiLo<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string name = default, string schema = default);
[System.Obsolete("Use UseHiLo")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqlServerUseSequenceHiLo<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string name = default, string schema = default);
static member ForSqlServerUseSequenceHiLo : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
[<System.Obsolete("Use UseHiLo")>]
static member ForSqlServerUseSequenceHiLo : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function ForSqlServerUseSequenceHiLo(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

序列的架構。

傳回

相同的產生器實例,以便鏈結多個呼叫。

屬性

適用於