Class AlterDefaultConstraintExpression
Expression to alter default constraints
Inherited Members
Namespace: FluentMigrator.Expressions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public class AlterDefaultConstraintExpression : MigrationExpressionBase, IMigrationExpression, ICanBeValidated, ISchemaExpression
Properties
ColumnName
Gets or sets the column name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "ColumnNameCannotBeNullOrEmpty")]
public virtual string ColumnName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultValue
Gets or sets the default value
Declaration
[Required(AllowEmptyStrings = true, ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "DefaultValueCannotBeNull")]
public virtual object DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
SchemaName
Gets or sets the schema name
Declaration
public virtual string SchemaName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TableName
Gets or sets the table name
Declaration
[Required(ErrorMessageResourceType = typeof(ErrorMessages), ErrorMessageResourceName = "TableNameCannotBeNullOrEmpty")]
public virtual string TableName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ExecuteWith(IMigrationProcessor)
Execute the expression with the given processor
Declaration
public override void ExecuteWith(IMigrationProcessor processor)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationProcessor | processor | The processor to execute the expression with |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |