From 8b4e0971171d40844ca1c63591aeb1fbe4add759 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 10 Dec 2017 13:21:59 +0200 Subject: Added DAL.Observables project. Changes DB table CONFIGURATIONS_DISPENSER to IDS_PACKS. CHanges DB table SYNC_CONFIGURATION to SYNC_CONFIGURATIONS --- .../Tango.CodeGeneration/Templates/EntityCodeFile.cshtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml') 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 class. /// /// The entity. - public @(Model.Name)(@(Model.TableName) entity) : base(entity) + public @(Model.Name)(@(Model.EntityName) entity) : base(entity) { Init(); MapEntityToObservable(entity, this); -- cgit v1.3.1