SqlServerPropertyBuilderExtensions.ForSqlServerUseSequenceHiLo 方法

定义

重载

ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)
已过时.

将 key 属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 OnAdd

ForSqlServerUseSequenceHiLo<TProperty>(PropertyBuilder<TProperty>, String, String)
已过时.

将 key 属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 OnAdd

ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

注意

Use UseHiLo

将 key 属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 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)

注意

Use UseHiLo

将 key 属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 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

序列的架构。

返回

同一生成器实例,以便可以链接多个调用。

属性

适用于