Table of Contents

Class ModelDeserializationTemplate

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

Class to produce the template output

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

Constructors

ModelDeserializationTemplate(StringBuilder, SqlDialect)

Initializes a new instance of the SchemaTemplates class.

public ModelDeserializationTemplate(StringBuilder generationEnvironment, SqlDialect dialect)

Parameters

generationEnvironment StringBuilder

the target generation environment.

dialect SqlDialect

the dialect for the template.

ModelDeserializationTemplate(SqlDialect)

Initializes a new instance of the SchemaTemplates class.

public ModelDeserializationTemplate(SqlDialect dialect)

Parameters

dialect SqlDialect

the dialect to ue for the template.

Methods

CultureDeserializationCommand(String)

creates an SQL command to deserialize the EntityViews.

public void CultureDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

EntityViewDeserializationCommand(String)

creates an SQL command to deserialize the EntityViews.

public void EntityViewDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

ModelActionDeserializationCommand(String, Boolean, Boolean)

creates an SQL command to deserialize the ModelAction.

public void ModelActionDeserializationCommand(string schema, bool hasShowInFormsListsExpression, bool hasExecuteWithoutPrompt)

Parameters

schema String

the schema to use.

hasShowInFormsListsExpression Boolean
hasExecuteWithoutPrompt Boolean

ModelEntityDeserializationCommand(String, Boolean)

creates an SQL command to deserialize the entities.

public void ModelEntityDeserializationCommand(string schema, bool hasGenericRelations)

Parameters

schema String

the schema to use.

hasGenericRelations Boolean

ModelEntityInterfacesDeserializationCommand(String)

creates an SQL command to deserialize the ModelEntityInterfaces.

public void ModelEntityInterfacesDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

ModelLogicalRelationsDeserializationCommand(String)

public void ModelLogicalRelationsDeserializationCommand(string schema)

Parameters

schema String

ModelPermissionsDeserializationCommand(String)

creates an SQL command to deserialize the permissions.

public void ModelPermissionsDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

ModelPropertyDeserializationCommand(String)

creates an SQL command to deserialize the properties.

public void ModelPropertyDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

ModelRelationsDeserializationCommand(String, Boolean)

creates an SQL command to deserialize the ModelRelations.

public void ModelRelationsDeserializationCommand(string schema, bool hasLogicalRelations)

Parameters

schema String

the schema to use.

hasLogicalRelations Boolean

true if the installed schema has logical relations installed, false otherwise

ModelValidationRulesDeserializationCommand(String)

creates an SQL command to deserialize the ValidationRules.

public void ModelValidationRulesDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

NamedSetDefinitionDeserializationCommand(String)

creates an SQL command to deserialize the NamedSetDefinitions.

public void NamedSetDefinitionDeserializationCommand(string schema)

Parameters

schema String

the schema to use.

TransformText()

Create the template output

public override string TransformText()

Returns

String

TriggerDeserializationCommand(String)

creates an SQL command to deserialize the Triggers.

public void TriggerDeserializationCommand(string schema)

Parameters

schema String

the schema to use.