Interface ICreateSequenceSyntax
Define the sequence options
Namespace: FluentMigrator.Builders.Create.Sequence
Assembly: FluentMigrator.Abstractions.dll
Syntax
public interface ICreateSequenceSyntax
Methods
| Edit this page View SourceCache(long)
Cache the next value
number of values for a single sequence increment
Declaration
ICreateSequenceSyntax Cache(long value)
Parameters
Type | Name | Description |
---|---|---|
long | value | The number of values to cache |
Returns
Type | Description |
---|---|
ICreateSequenceSyntax | Define the sequence options |
Remarks
Normally used together with IncrementBy(long)
Cycle()
Defines that the sequence starts again with the MinValue(long) value for the next value after MaxValue(long)
Declaration
ICreateSequenceSyntax Cycle()
Returns
Type | Description |
---|---|
ICreateSequenceSyntax | Define the sequence options |
IncrementBy(long)
Defines the increment
Declaration
ICreateSequenceSyntax IncrementBy(long increment)
Parameters
Type | Name | Description |
---|---|---|
long | increment | The value used to increment the sequence |
Returns
Type | Description |
---|---|
ICreateSequenceSyntax | Define the sequence options |
MaxValue(long)
Sets the maximum value of the sequence
Declaration
ICreateSequenceSyntax MaxValue(long maxValue)
Parameters
Type | Name | Description |
---|---|---|
long | maxValue | The maximum value of the sequence |
Returns
Type | Description |
---|---|
ICreateSequenceSyntax | Define the sequence options |
MinValue(long)
Sets the minimum value of the sequence
Declaration
ICreateSequenceSyntax MinValue(long minValue)
Parameters
Type | Name | Description |
---|---|---|
long | minValue | The minimum value of the sequence |
Returns
Type | Description |
---|---|
ICreateSequenceSyntax | Define the sequence options |
StartWith(long)
Sets the start value of the sequence
Declaration
ICreateSequenceSyntax StartWith(long startWith)
Parameters
Type | Name | Description |
---|---|---|
long | startWith | The start value |
Returns
Type | Description |
---|---|
ICreateSequenceSyntax | Define the sequence options |