diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-10 13:21:59 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-10 13:21:59 +0200 |
| commit | 8b4e0971171d40844ca1c63591aeb1fbe4add759 (patch) | |
| tree | f257fb0c986ec841844285ddda6477057408ea2b /Software/Visual_Studio/Tango.CodeGeneration | |
| parent | b64fa61aaa9cc684b72935159048c7f24bafce51 (diff) | |
| download | Tango-8b4e0971171d40844ca1c63591aeb1fbe4add759.tar.gz Tango-8b4e0971171d40844ca1c63591aeb1fbe4add759.zip | |
Added DAL.Observables project.
Changes DB table CONFIGURATIONS_DISPENSER to IDS_PACKS.
CHanges DB table SYNC_CONFIGURATION to SYNC_CONFIGURATIONS
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration')
| -rw-r--r-- | Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs | 2 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs index a6512dbee..7de161f71 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs @@ -8,6 +8,8 @@ namespace Tango.CodeGeneration { public class EntityCodeFile : Class { + public String EntityName { get; set; } + public String TableName { get; set; } public List<EntityCodeFileField> Fields { get; set; } diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml index 301b9f58c..7e577bbca 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml @@ -4,9 +4,10 @@ using System.Collections.ObjectModel; using System.Linq; using Tango.DAL.Remote.DB; -namespace Tango.DAL.Remote.ObservableEntities +namespace Tango.DAL.Observables { - public class @(Model.Name) : ObservableEntity<@(Model.TableName)> + [EntityFieldName("@(Model.TableName)")] + public class @(Model.Name) : ObservableEntity<@(Model.EntityName)> { @foreach (var prop in Model.Fields) { @@ -36,7 +37,7 @@ namespace Tango.DAL.Remote.ObservableEntities /// Initializes a new instance of the <see cref="@(Model.Name)" /> class. /// </summary> /// <param name="entity">The entity.</param> - public @(Model.Name)(@(Model.TableName) entity) : base(entity) + public @(Model.Name)(@(Model.EntityName) entity) : base(entity) { Init(); MapEntityToObservable(entity, this); |
