SqlServerModelBuilderExtensions.ForSqlServerHasHiLoSequence 方法

定义

注意

Use HasHiLoSequence

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

[System.Obsolete("Use HasHiLoSequence")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder ForSqlServerHasHiLoSequence (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, string schema, bool fromDataAnnotation = false);
[<System.Obsolete("Use HasHiLoSequence")>]
static member ForSqlServerHasHiLoSequence : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
<Extension()>
Public Function ForSqlServerHasHiLoSequence (modelBuilder As IConventionModelBuilder, name As String, schema As String, Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

参数

modelBuilder
IConventionModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

用于进一步配置序列的生成器。

属性

适用于