Search Results for

    Show / Hide Table of Contents

    Class SequenceDefinition

    The sequence definition

    Inheritance
    object
    SequenceDefinition
    Implements
    ICloneable
    ICanBeValidated
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Model
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public class SequenceDefinition : ICloneable, ICanBeValidated

    Properties

    | Edit this page View Source

    Cache

    Gets or sets the number of cached sequence values

    Declaration
    public virtual long? Cache { get; set; }
    Property Value
    Type Description
    long?
    Remarks

    Normally used together with Increment.

    | Edit this page View Source

    Cycle

    Gets or sets a value indicating whether the sequence should start with MinValue for the next value after MaxValue

    Declaration
    public virtual bool Cycle { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Increment

    Gets or sets the increment of the sequence

    Declaration
    public virtual long? Increment { get; set; }
    Property Value
    Type Description
    long?
    | Edit this page View Source

    MaxValue

    Gets or sets the maximum value of the sequence (inclusive)

    Declaration
    public virtual long? MaxValue { get; set; }
    Property Value
    Type Description
    long?
    | Edit this page View Source

    MinValue

    Gets or sets the minimum value of the sequence (inclusive)

    Declaration
    public virtual long? MinValue { get; set; }
    Property Value
    Type Description
    long?
    | Edit this page View Source

    Name

    Gets or sets the sequence name

    Declaration
    [Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "SequenceNameCannotBeNullOrEmpty")]
    public virtual string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    SchemaName

    Gets or sets the schema name

    Declaration
    public virtual string SchemaName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    StartWith

    Gets or sets the start value of the sequence

    Declaration
    public virtual long? StartWith { get; set; }
    Property Value
    Type Description
    long?

    Methods

    | Edit this page View Source

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public object Clone()
    Returns
    Type Description
    object

    A new object that is a copy of this instance.

    | Edit this page View Source

    CollectValidationErrors(ICollection<string>)

    Collect validation errors

    Declaration
    [Obsolete("Use the System.ComponentModel.DataAnnotations.Validator instead")]
    public void CollectValidationErrors(ICollection<string> errors)
    Parameters
    Type Name Description
    ICollection<string> errors

    The collection of error messages

    Implements

    ICloneable
    ICanBeValidated

    Extension Methods

    LegacyValidationExtensions.CollectErrors(ICanBeValidated, ICollection<string>, IServiceProvider)
    LegacyValidationExtensions.TryCollectResults(ICanBeValidated, ICollection<ValidationResult>, IServiceProvider, IDictionary<object, object>)
    • 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.