Share via


RelationalModelBuilderExtensions.HasSequence Method

Definition

Overloads

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, String)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(IConventionModelBuilder, String, String, Boolean)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, String)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, String)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

Configures a database sequence when targeting a relational database.

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, type As Type, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

clrTypetype
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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(ModelBuilder, Type, String, String)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string? schema = default);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, Optional schema As String = Nothing) As SequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, type As Type, name As String, Optional schema As String = Nothing) As SequenceBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

clrTypetype
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.

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, type As Type, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

clrTypetype
Type

The type of values the sequence will generate.

name
String

The name of the sequence.

builderAction
Action<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) 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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Applies to

HasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (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

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of SequenceBuilder)) 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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Applies to

HasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (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

HasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (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

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

name
String

The name of the sequence.

schema
String

The schema of the sequence.

builderAction
Action<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(IConventionModelBuilder, String, String, Boolean)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, string schema = default, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, string? schema = default, bool fromDataAnnotation = false);
static member HasSequence : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As IConventionModelBuilder, name As String, Optional schema As String = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

Parameters

modelBuilder
IConventionModelBuilder

The model builder.

name
String

The name of the sequence.

schema
String

The schema of the sequence.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

A builder to further configure the sequence.

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(ModelBuilder, String, String)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema = default);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As SequenceBuilder

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.

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

name
String

The name of the sequence.

builderAction
Action<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Applies to

HasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (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

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

name
String

The name of the sequence.

builderAction
Action<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

name
String

The name of the sequence.

schema
String

The schema of the sequence.

builderAction
Action<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Applies to

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) 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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(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

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) 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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Applies to

HasSequence<T>(ModelBuilder, String, String)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema = default);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As SequenceBuilder

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.

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) 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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Remarks

See Database sequences for more information and examples.

Applies to

HasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(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

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

Source:
RelationalModelBuilderExtensions.cs
Source:
RelationalModelBuilderExtensions.cs

Configures a database sequence when targeting a relational database.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) 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<SequenceBuilder>

An action that performs configuration of the sequence.

Returns

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

Applies to