Table of Contents

Class SqlAddProperty

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

Class to produce the template output

public class SqlAddProperty : SqlTransformBase
Inheritance
Object
SqlAddProperty
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

SqlAddProperty(StringBuilder, SqlDialect)

Initializes a new instance of the SqlAddProperty class

public SqlAddProperty(StringBuilder generationEnvironment, SqlDialect dialect)

Parameters

generationEnvironment StringBuilder

the target string buffer.

dialect SqlDialect

the dialect to use.

SqlAddProperty(SqlDialect)

Initializes a new instance of the SqlAddProperty class

public SqlAddProperty(SqlDialect dialect)

Parameters

dialect SqlDialect

the dialect to use.

Methods

AddProperty(String, ModelProperty, StorageColumn[])

Generates code to add a property w/ storage columns, either sql azure or sql compact, depending on the dialect.

public void AddProperty(string schema, ModelProperty property, StorageColumn[] columns)

Parameters

schema String

the schema to use

property ModelProperty

the property for which columns are added.

columns StorageColumn[]

the columns to be added.

TransformText()

Create the template output

public override string TransformText()

Returns

String