Table of Contents

Class SequenceOperation

Namespace
Microsoft.EntityFrameworkCore.Migrations.Operations
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

A MigrationOperation for operations on sequences. See also CreateSequenceOperation and AlterSequenceOperation.

public abstract class SequenceOperation : MigrationOperation
Inheritance
SequenceOperation
Derived
Inherited Members

Constructors

SequenceOperation()

protected SequenceOperation()

Properties

IncrementBy

The amount to increment by when generating the next value in the sequence, defaulting to 1.

public virtual int IncrementBy { get; set; }

Property Value

int

IsCyclic

Indicates whether or not the sequence will re-start when the maximum value is reached.

public virtual bool IsCyclic { get; set; }

Property Value

bool

MaxValue

The maximum value of the sequence, or null if not specified.

public virtual long? MaxValue { get; set; }

Property Value

long?

MinValue

The minimum value of the sequence, or null if not specified.

public virtual long? MinValue { get; set; }

Property Value

long?