Search Results for

    Show / Hide Table of Contents

    Interface ICreateSequenceSyntax

    Define the sequence options

    Namespace: FluentMigrator.Builders.Create.Sequence
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public interface ICreateSequenceSyntax

    Methods

    | Edit this page View Source

    Cache(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)

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.