Class ModelDeserializationTemplate
Class to produce the template output
Inherited Members
Namespace: TimeCockpit.Data.Database.StringTemplates
Assembly: TimeCockpit.Data.dll
Syntax
public class ModelDeserializationTemplate : SqlTransformBase
Constructors
ModelDeserializationTemplate(StringBuilder, SqlDialect)
Initializes a new instance of the SchemaTemplates class.
Declaration
public ModelDeserializationTemplate(StringBuilder generationEnvironment, SqlDialect dialect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | generationEnvironment | the target generation environment. |
| SqlDialect | dialect | the dialect for the template. |
ModelDeserializationTemplate(SqlDialect)
Initializes a new instance of the SchemaTemplates class.
Declaration
public ModelDeserializationTemplate(SqlDialect dialect)
Parameters
| Type | Name | Description |
|---|---|---|
| SqlDialect | dialect | the dialect to ue for the template. |
Methods
CultureDeserializationCommand(String)
creates an SQL command to deserialize the EntityViews.
Declaration
public void CultureDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
EntityViewDeserializationCommand(String)
creates an SQL command to deserialize the EntityViews.
Declaration
public void EntityViewDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
ModelActionDeserializationCommand(String, Boolean, Boolean)
creates an SQL command to deserialize the ModelAction.
Declaration
public void ModelActionDeserializationCommand(string schema, bool hasShowInFormsListsExpression, bool hasExecuteWithoutPrompt)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
| System.Boolean | hasShowInFormsListsExpression | |
| System.Boolean | hasExecuteWithoutPrompt |
ModelEntityDeserializationCommand(String, Boolean)
creates an SQL command to deserialize the entities.
Declaration
public void ModelEntityDeserializationCommand(string schema, bool hasGenericRelations)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
| System.Boolean | hasGenericRelations |
ModelEntityInterfacesDeserializationCommand(String)
creates an SQL command to deserialize the ModelEntityInterfaces.
Declaration
public void ModelEntityInterfacesDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
ModelLogicalRelationsDeserializationCommand(String)
Declaration
public void ModelLogicalRelationsDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema |
ModelPermissionsDeserializationCommand(String)
creates an SQL command to deserialize the permissions.
Declaration
public void ModelPermissionsDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
ModelPropertyDeserializationCommand(String)
creates an SQL command to deserialize the properties.
Declaration
public void ModelPropertyDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
ModelRelationsDeserializationCommand(String, Boolean)
creates an SQL command to deserialize the ModelRelations.
Declaration
public void ModelRelationsDeserializationCommand(string schema, bool hasLogicalRelations)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
| System.Boolean | hasLogicalRelations | true if the installed schema has logical relations installed, false otherwise |
ModelValidationRulesDeserializationCommand(String)
creates an SQL command to deserialize the ValidationRules.
Declaration
public void ModelValidationRulesDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
NamedSetDefinitionDeserializationCommand(String)
creates an SQL command to deserialize the NamedSetDefinitions.
Declaration
public void NamedSetDefinitionDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |
TransformText()
Create the template output
Declaration
public override string TransformText()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
TriggerDeserializationCommand(String)
creates an SQL command to deserialize the Triggers.
Declaration
public void TriggerDeserializationCommand(string schema)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | schema | the schema to use. |