Class SqlDropDefaultTemplate
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 SqlDropDefaultTemplate : SqlTransformBase
Constructors
SqlDropDefaultTemplate(StringBuilder, SqlDialect)
Initializes a new instance of the SqlDropDefaultTemplate class.
Declaration
public SqlDropDefaultTemplate(StringBuilder generationEnvironment, SqlDialect dialect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | generationEnvironment | the target string builder. |
| SqlDialect | dialect | the dialect for create sql for. |
SqlDropDefaultTemplate(SqlDialect)
Initializes a new instance of the SqlDropDefaultTemplate class.
Declaration
public SqlDropDefaultTemplate(SqlDialect dialect)
Parameters
| Type | Name | Description |
|---|---|---|
| SqlDialect | dialect | the dialect to create sql for. |
Methods
DropDefault(ModelElement, StorageColumn)
drops the constraint on a storage column
Declaration
public void DropDefault(ModelElement parentElement, StorageColumn column)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelElement | parentElement | the parentElement the storage column belongs to. |
| StorageColumn | column | the column to drop constraints for. |
TransformText()
Create the template output
Declaration
public override string TransformText()
Returns
| Type | Description |
|---|---|
| System.String |