Method CreateDefaultConstraint
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
CreateDefaultConstraint(string, IDefaultItem, DefaultConstraintType, DataType)
Creates a DEFAULT constraint for a column, specifying the default value applied when no value is provided.
public Default CreateDefaultConstraint(string column, IDefaultItem defaultItem, DefaultConstraintType defaultConstraintType, DataType dataType)
Parameters
columnstringThe column name.
defaultItemIDefaultItemThe default value item.
defaultConstraintTypeDefaultConstraintTypeThe type of default constraint.
dataTypeDataTypeThe data type of the column receiving the default.