Class SequenceDefinition
The sequence definition
Inherited Members
Namespace: FluentMigrator.Model
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class SequenceDefinition : ICloneable, ICanBeValidated
Properties
| Edit this page View SourceCache
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.
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 |
Increment
Gets or sets the increment of the sequence
Declaration
public virtual long? Increment { get; set; }
Property Value
Type | Description |
---|---|
long? |
MaxValue
Gets or sets the maximum value of the sequence (inclusive)
Declaration
public virtual long? MaxValue { get; set; }
Property Value
Type | Description |
---|---|
long? |
MinValue
Gets or sets the minimum value of the sequence (inclusive)
Declaration
public virtual long? MinValue { get; set; }
Property Value
Type | Description |
---|---|
long? |
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 |
SchemaName
Gets or sets the schema name
Declaration
public virtual string SchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
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 SourceClone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
object |
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 |