Class IndexDefinition
Inheritance
IndexDefinition
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class IndexDefinition : ICloneable, ICanBeValidated, ISupportAdditionalFeatures, IValidatableObject, IValidationChildren
Properties
|
Edit this page
View Source
AdditionalFeatures
Gets the dictionary to store the values for additional features
Declaration
public virtual IDictionary<string, object> AdditionalFeatures { get; }
Property Value
|
Edit this page
View Source
Columns
Gets or sets a collection of index column definitions
Declaration
public virtual ICollection<IndexColumnDefinition> Columns { get; set; }
Property Value
|
Edit this page
View Source
IsClustered
Gets or sets a value indicating whether the index is clustered
Declaration
public bool IsClustered { get; set; }
Property Value
|
Edit this page
View Source
IsUnique
Gets or sets a value indicating whteher the index only allows unique values
Declaration
public virtual bool IsUnique { get; set; }
Property Value
|
Edit this page
View Source
Name
Gets or sets the index name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "IndexNameCannotBeNullOrEmpty")]
public virtual string Name { get; set; }
Property Value
|
Edit this page
View Source
SchemaName
Gets or sets the schema name
Declaration
public virtual string SchemaName { get; set; }
Property Value
|
Edit this page
View Source
TableName
Gets or sets the table name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "TableNameCannotBeNullOrEmpty")]
public virtual string TableName { get; set; }
Property Value
Methods
|
Edit this page
View Source
Clone()
Declaration
Returns
|
Edit this page
View Source
CollectValidationErrors(ICollection<string>)
Collect validation errors
Declaration
[Obsolete("Use the System.ComponentModel.DataAnnotations.Validator instead")]
public virtual void CollectValidationErrors(ICollection<string> errors)
Parameters
|
Edit this page
View Source
Validate(ValidationContext)
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Returns
Implements
Extension Methods