Class EntitySchemaGenerator
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: Terrasoft.Core.Entities
Assembly: Terrasoft.Core.dll
Syntax
public class EntitySchemaGenerator : SchemaCodeGenerator<EntitySchema>
Constructors
EntitySchemaGenerator(UserConnection, String)
Declaration
public EntitySchemaGenerator(UserConnection userConnection, string namespaceName)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | |
System.String | namespaceName |
Properties
EntitySchemaName
Declaration
public string EntitySchemaName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AddEntitySchemaEventsProcessMethods(EntitySchema, Collection<CodeGenerator.MethodCollectionItem>)
Declaration
protected void AddEntitySchemaEventsProcessMethods(EntitySchema entitySchema, Collection<CodeGenerator.MethodCollectionItem> protectedMethods)
Parameters
Type | Name | Description |
---|---|---|
EntitySchema | entitySchema | |
System.Collections.ObjectModel.Collection<CodeGenerator.MethodCollectionItem> | protectedMethods |
GenerateAdditionalSources(SchemaCodeGeneratorResource<EntitySchema>, EntityCollection)
Declaration
protected override void GenerateAdditionalSources(SchemaCodeGeneratorResource<EntitySchema> resource, EntityCollection sources)
Parameters
Type | Name | Description |
---|---|---|
SchemaCodeGeneratorResource<EntitySchema> | resource | |
EntityCollection | sources |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.GenerateAdditionalSources(Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Entities.EntitySchema>, Terrasoft.Core.Entities.EntityCollection)
GenerateSchemaSource(SchemaCodeGeneratorResource<EntitySchema>, EntityCollection, String)
Declaration
protected override void GenerateSchemaSource(SchemaCodeGeneratorResource<EntitySchema> resource, EntityCollection sourceCollection, string sourceFileName = null)
Parameters
Type | Name | Description |
---|---|---|
SchemaCodeGeneratorResource<EntitySchema> | resource | |
EntityCollection | sourceCollection | |
System.String | sourceFileName |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.GenerateSchemaSource(Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Entities.EntitySchema>, Terrasoft.Core.Entities.EntityCollection, System.String)
GenerateSources(SchemaCodeGeneratorResource<EntitySchema>)
Declaration
public override EntityCollection GenerateSources(SchemaCodeGeneratorResource<EntitySchema> resource)
Parameters
Type | Name | Description |
---|---|---|
SchemaCodeGeneratorResource<EntitySchema> | resource |
Returns
Type | Description |
---|---|
EntityCollection |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.GenerateSources(Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Entities.EntitySchema>)
SpecifyCommonUsingCollection(Collection<String>, EntitySchema)
Declaration
protected override void SpecifyCommonUsingCollection(Collection<string> commonUsingCollection, EntitySchema schema)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.Collection<System.String> | commonUsingCollection | |
EntitySchema | schema |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.SpecifyCommonUsingCollection(System.Collections.ObjectModel.Collection<System.String>, Terrasoft.Core.Entities.EntitySchema)
WriteEventProcessInContext(EntitySchema, GeneratorContext)
Declaration
protected void WriteEventProcessInContext(EntitySchema schema, GeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
EntitySchema | schema | |
GeneratorContext | context |
WriteInternalProcessSchemaInContext(ProcessBasedSchema, GeneratorContext)
Declaration
protected override void WriteInternalProcessSchemaInContext(ProcessBasedSchema schema, GeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
ProcessBasedSchema | schema | |
GeneratorContext | context |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.WriteInternalProcessSchemaInContext(Terrasoft.Core.Process.ProcessBasedSchema, Terrasoft.Core.CodeGeneration.GeneratorContext)
WriteSchemaClassAttributes(GeneratorContext, EntitySchema)
Declaration
protected override void WriteSchemaClassAttributes(GeneratorContext context, EntitySchema schema)
Parameters
Type | Name | Description |
---|---|---|
GeneratorContext | context | |
EntitySchema | schema |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.WriteSchemaClassAttributes(Terrasoft.Core.CodeGeneration.GeneratorContext, Terrasoft.Core.Entities.EntitySchema)
WriteSchemaClassBody(GeneratorContext, SchemaCodeGeneratorResource<EntitySchema>, GeneratorTokenVisibility)
Declaration
protected override void WriteSchemaClassBody(GeneratorContext context, SchemaCodeGeneratorResource<EntitySchema> resource, GeneratorTokenVisibility sourceVisibility)
Parameters
Type | Name | Description |
---|---|---|
GeneratorContext | context | |
SchemaCodeGeneratorResource<EntitySchema> | resource | |
GeneratorTokenVisibility | sourceVisibility |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.WriteSchemaClassBody(Terrasoft.Core.CodeGeneration.GeneratorContext, Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Entities.EntitySchema>, Terrasoft.Core.CodeGeneration.GeneratorTokenVisibility)
WriteSchemaClassName(GeneratorContext, SchemaCodeGeneratorResource<EntitySchema>, GeneratorTokenVisibility)
Declaration
protected override void WriteSchemaClassName(GeneratorContext context, SchemaCodeGeneratorResource<EntitySchema> resource, GeneratorTokenVisibility sourceVisibility)
Parameters
Type | Name | Description |
---|---|---|
GeneratorContext | context | |
SchemaCodeGeneratorResource<EntitySchema> | resource | |
GeneratorTokenVisibility | sourceVisibility |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.WriteSchemaClassName(Terrasoft.Core.CodeGeneration.GeneratorContext, Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Entities.EntitySchema>, Terrasoft.Core.CodeGeneration.GeneratorTokenVisibility)
WriteSchemaSourceInContext(SchemaCodeGeneratorResource<EntitySchema>, GeneratorContext, GeneratorTokenVisibility)
Declaration
public override void WriteSchemaSourceInContext(SchemaCodeGeneratorResource<EntitySchema> resource, GeneratorContext context, GeneratorTokenVisibility sourceVisibility)
Parameters
Type | Name | Description |
---|---|---|
SchemaCodeGeneratorResource<EntitySchema> | resource | |
GeneratorContext | context | |
GeneratorTokenVisibility | sourceVisibility |
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Entities.EntitySchema>.WriteSchemaSourceInContext(Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Entities.EntitySchema>, Terrasoft.Core.CodeGeneration.GeneratorContext, Terrasoft.Core.CodeGeneration.GeneratorTokenVisibility)