Class SqlDropDefaultConstraintTemplate
Class to produce the template output
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.Database.StringTemplates.SubTemplates
Assembly: TimeCockpit.Data.dll
Syntax
public class SqlDropDefaultConstraintTemplate : SqlTransformBase
Constructors
SqlDropDefaultConstraintTemplate(StringBuilder, SqlDialect)
Initializes a new instance of the SqlDataTypes class.
Declaration
public SqlDropDefaultConstraintTemplate(StringBuilder generationEnvironment, SqlDialect dialect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | generationEnvironment | the target string builder to write to. |
| SqlDialect | dialect | the dialect to use. |
SqlDropDefaultConstraintTemplate(SqlDialect)
Initializes a new instance of the SqlDataTypes class.
Declaration
public SqlDropDefaultConstraintTemplate(SqlDialect dialect)
Parameters
| Type | Name | Description |
|---|---|---|
| SqlDialect | dialect | the dialect to use. |
Methods
DropDefault(ModelElement, StorageColumn)
Writes SQL to drop the default constraint.
Declaration
public void DropDefault(ModelElement element, StorageColumn column)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelElement | element | the element to drop constraints for. |
| StorageColumn | column | the storage column to drop constraints for. |
DropDefaultConstraint(String, ModelElement, StorageColumn)
Writes SQL to drop the default constraint.
Declaration
public void DropDefaultConstraint(string schema, ModelElement parentElement, StorageColumn column)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
| ModelElement | parentElement | the parenting model element. |
| StorageColumn | column | the storage column to drop the constraint for. |
TransformText()
Create the template output
Declaration
public override string TransformText()
Returns
| Type | Description |
|---|---|
| System.String |