Class ConstraintDefinition
The constraint definition
Inheritance
ConstraintDefinition
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class ConstraintDefinition : ICloneable, ICanBeValidated, ISupportAdditionalFeatures, IValidatableObject
Constructors
|
Edit this page
View Source
ConstraintDefinition(ConstraintType)
Declaration
public ConstraintDefinition(ConstraintType type)
Parameters
Properties
|
Edit this page
View Source
AdditionalFeatures
Gets the dictionary to store the values for additional features
Declaration
public IDictionary<string, object> AdditionalFeatures { get; }
Property Value
|
Edit this page
View Source
Columns
Gets or sets the column names
Declaration
public virtual ICollection<string> Columns { get; set; }
Property Value
|
Edit this page
View Source
ConstraintName
Gets or sets the constraint name
Declaration
public virtual string ConstraintName { get; set; }
Property Value
|
Edit this page
View Source
IsPrimaryKeyConstraint
Gets a value indicating whether the constraint is a primary key constraint
Declaration
public bool IsPrimaryKeyConstraint { get; }
Property Value
|
Edit this page
View Source
IsUniqueConstraint
Gets a value indicating whether the constraint is a unique constraint
Declaration
public bool IsUniqueConstraint { get; }
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 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