Table of Contents

Class SqlDropDefaultConstraintTemplate

Namespace
TimeCockpit.Data.Database.StringTemplates.SubTemplates
Assembly
TimeCockpit.Data.dll

Class to produce the template output

public class SqlDropDefaultConstraintTemplate : SqlTransformBase
Inheritance
Object
SqlDropDefaultConstraintTemplate
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

generationEnvironment StringBuilder

the target string builder to write to.

dialect SqlDialect

the dialect to use.

SqlDropDefaultConstraintTemplate(SqlDialect)

Initializes a new instance of the SqlDataTypes class.

public SqlDropDefaultConstraintTemplate(SqlDialect dialect)

Parameters

dialect SqlDialect

the dialect to use.

Methods

DropDefault(ModelElement, StorageColumn)

Writes SQL to drop the default constraint.

public void DropDefault(ModelElement element, StorageColumn column)

Parameters

element ModelElement

the element to drop constraints for.

column StorageColumn

the 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

schema String

the schema to use.

parentElement ModelElement

the parenting model element.

column StorageColumn

the storage column to drop the constraint for.

TransformText()

Create the template output

public override string TransformText()

Returns

String