SqlServerModelBuilderExtensions.ForSqlServerUseSequenceHiLo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework