RelationalModelExtensions.AddSequence Method

Definition

Overloads

AddSequence(IMutableModel, String, String)

Either returns the existing IMutableSequence with the given name in the given schema or creates a new sequence with the given name and schema.

AddSequence(IConventionModel, String, String, Boolean)

Either returns the existing IMutableSequence with the given name in the given schema or creates a new sequence with the given name and schema.

AddSequence(IMutableModel, String, String)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Either returns the existing IMutableSequence with the given name in the given schema or creates a new sequence with the given name and schema.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IMutableSequence AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, string schema = default);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IMutableSequence AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, string? schema = default);

Parameters

model
IMutableModel

The model to add the sequence to.

name
String

The sequence name.

schema
String

The schema name, or null to use the default schema.

Returns

The sequence.

Applies to

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddSequence(IConventionModel, String, String, Boolean)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Either returns the existing IMutableSequence with the given name in the given schema or creates a new sequence with the given name and schema.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IConventionSequence AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, string schema = default, bool fromDataAnnotation = false);
C#
public static Microsoft.EntityFrameworkCore.Metadata.IConventionSequence? AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, string? schema = default, bool fromDataAnnotation = false);

Parameters

model
IConventionModel

The model to add the sequence to.

name
String

The sequence name.

schema
String

The schema name, or null to use the default schema.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The sequence.

Applies to

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0