SqlServerModelBuilderExtensions.ForSqlServerUseSequenceHiLo 方法

定义

注意

Use UseHiLo

将模型配置为在面向 SQL Server 时使用基于序列的 hi-lo 模式为标记为 OnAdd的关键属性生成值。

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

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

返回

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

属性

适用于