Class SqlDropDefaultConstraintTemplate
- Assembly
- TimeCockpit.Data.dll
Class to produce the template output
public class SqlDropDefaultConstraintTemplate : SqlTransformBase
- Inheritance
-
ObjectSqlDropDefaultConstraintTemplate
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
SqlDropDefaultConstraintTemplate(StringBuilder, SqlDialect)
Initializes a new instance of the SqlDataTypes class.
public SqlDropDefaultConstraintTemplate(StringBuilder generationEnvironment, SqlDialect dialect)
Parameters
generationEnvironmentStringBuilderthe target string builder to write to.
dialectSqlDialectthe dialect to use.
SqlDropDefaultConstraintTemplate(SqlDialect)
Initializes a new instance of the SqlDataTypes class.
public SqlDropDefaultConstraintTemplate(SqlDialect dialect)
Parameters
dialectSqlDialectthe dialect to use.
Methods
DropDefault(ModelElement, StorageColumn)
Writes SQL to drop the default constraint.
public void DropDefault(ModelElement element, StorageColumn column)
Parameters
elementModelElementthe element to drop constraints for.
columnStorageColumnthe storage column to drop constraints for.
DropDefaultConstraint(String, ModelElement, StorageColumn)
Writes SQL to drop the default constraint.
public void DropDefaultConstraint(string schema, ModelElement parentElement, StorageColumn column)
Parameters
schemaStringthe schema to use.
parentElementModelElementthe parenting model element.
columnStorageColumnthe storage column to drop the constraint for.
TransformText()
Create the template output
public override string TransformText()
Returns
- String