SqlServerModelBuilderExtensions.ForSqlServerHasSequence 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.
Overloads
ForSqlServerHasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- name
- String
The name of the sequence.
- builderAction
- Action<RelationalSequenceBuilder>
An action that performs configuration of the sequence.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
ForSqlServerHasSequence(ModelBuilder, String, String)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- name
- String
The name of the sequence.
- schema
- String
The schema of the sequence.
Returns
A builder to further configure the sequence.
Applies to
ForSqlServerHasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- name
- String
The name of the sequence.
- schema
- String
The schema of the sequence.
- builderAction
- Action<RelationalSequenceBuilder>
An action that performs configuration of the sequence.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
ForSqlServerHasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- clrType
- Type
The type of values the sequence will generate.
- name
- String
The name of the sequence.
- builderAction
- Action<RelationalSequenceBuilder>
An action that performs configuration of the sequence.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
ForSqlServerHasSequence(ModelBuilder, Type, String, String)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- clrType
- Type
The type of values the sequence will generate.
- name
- String
The name of the sequence.
- schema
- String
The schema of the sequence.
Returns
A builder to further configure the sequence.
Applies to
ForSqlServerHasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- clrType
- Type
The type of values the sequence will generate.
- name
- String
The name of the sequence.
- schema
- String
The schema of the sequence.
- builderAction
- Action<RelationalSequenceBuilder>
An action that performs configuration of the sequence.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
ForSqlServerHasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Type Parameters
- T
The type of values the sequence will generate.
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- name
- String
The name of the sequence.
- builderAction
- Action<RelationalSequenceBuilder>
An action that performs configuration of the sequence.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
ForSqlServerHasSequence<T>(ModelBuilder, String, String)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder ForSqlServerHasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
<Extension()>
Public Function ForSqlServerHasSequence(Of T) (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
Type Parameters
- T
The type of values the sequence will generate.
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- name
- String
The name of the sequence.
- schema
- String
The schema of the sequence.
Returns
A builder to further configure the sequence.
Applies to
ForSqlServerHasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)
Configures a database sequence when targeting SQL Server.
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence(Of T) (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Type Parameters
- T
The type of values the sequence will generate.
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- name
- String
The name of the sequence.
- schema
- String
The schema of the sequence.
- builderAction
- Action<RelationalSequenceBuilder>
An action that performs configuration of the sequence.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
Entity Framework