SqlServerModelBuilderExtensions.ForSqlServerUseSequenceHiLo Method

Definition

Caution

Use UseHiLo

Configures the model to use a sequence-based hi-lo pattern to generate values for key properties marked as OnAdd, when targeting SQL Server.

C#
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerUseSequenceHiLo (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name = default, string schema = default);
C#
[System.Obsolete("Use UseHiLo")]
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerUseSequenceHiLo (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name = default, string schema = default);

Parameters

modelBuilder
ModelBuilder

The model builder.

name
String

The name of the sequence.

schema
String

The schema of the sequence.

Returns

The same builder instance so that multiple calls can be chained.

Attributes

Applies to

Product Versions (Obsolete)
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2 (3.0, 3.1)