From ac34ffe211bfa0d811f33a9e6141c0da97c55abe Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 14 Dec 2017 15:35:39 +0200 Subject: Implemented DAL Observables auto enumerations generation. --- .../Tango.CodeGeneration/EnumerationField.cs | 15 ++++++++++++++ .../Tango.CodeGeneration/EnumerationFile.cs | 20 +++++++++++++++++++ .../Tango.CodeGeneration.csproj | 3 +++ .../Templates/EnumerationFile.cshtml | 23 ++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EnumerationFile.cshtml (limited to 'Software/Visual_Studio/Tango.CodeGeneration') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs new file mode 100644 index 000000000..f8bb98b9b --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationField.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + public class EnumerationField + { + public String Name { get; set; } + public int Value { get; set; } + public String Description { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs new file mode 100644 index 000000000..e49b7fa48 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFile.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + public class EnumerationFile : CodeFile + { + public String Name { get; set; } + + public List Fields { get; set; } + + public EnumerationFile() + { + Fields = new List(); + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj index e9f1fd586..e2cc941e7 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj +++ b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj @@ -65,6 +65,8 @@ + + @@ -93,6 +95,7 @@ +