From afc7a07d285e08d905c58dd5978441c155b2f296 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 19 Dec 2017 10:25:40 +0200 Subject: MERGE. --- .../Visual_Studio/Tango.CodeGeneration/Class.cs | 2 +- .../Tango.CodeGeneration/EntityCodeFileJava.cs | 22 ++++++++ .../Tango.CodeGeneration/EnumerationFileJava.cs | 20 ++++++++ .../Tango.CodeGeneration/ObservablesAdapterFile.cs | 13 +++++ .../Tango.CodeGeneration.csproj | 8 +++ .../Tango.CodeGeneration/TangoDAOJavaFile.cs | 26 ++++++++++ .../Templates/EntityCodeFileJava.cshtml | 59 ++++++++++++++++++++++ .../Templates/EnumerationFileJava.cshtml | 23 +++++++++ .../Templates/ObservablesAdapterFile.cshtml | 46 +++++++++++++++++ .../Templates/TangoDAOJavaFile.cshtml | 27 ++++++++++ 10 files changed, 245 insertions(+), 1 deletion(-) create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/TangoDAOJavaFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJava.cshtml create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EnumerationFileJava.cshtml create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesAdapterFile.cshtml create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/TangoDAOJavaFile.cshtml (limited to 'Software/Visual_Studio/Tango.CodeGeneration') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Class.cs b/Software/Visual_Studio/Tango.CodeGeneration/Class.cs index 087f07916..45a32ae3e 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Class.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Class.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace Tango.CodeGeneration { - public class Class : CodeObject + public class Class : CodeObject { /// /// Gets or sets the class name. diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs new file mode 100644 index 000000000..d2bfd80fc --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + public class EntityCodeFileJava : Class + { + public String EntityName { get; set; } + + public String TableName { get; set; } + + public List Fields { get; set; } + + public EntityCodeFileJava(String name) : base(name) + { + Fields = new List(); + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.cs new file mode 100644 index 000000000..6a42326f7 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EnumerationFileJava.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 EnumerationFileJava : CodeFile + { + public String Name { get; set; } + + public List Fields { get; set; } + + public EnumerationFileJava() + { + Fields = new List(); + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs new file mode 100644 index 000000000..7b1e3d8fe --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/ObservablesAdapterFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + public class ObservablesAdapterFile : Class + { + + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj index e2cc941e7..1c491813a 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj +++ b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj @@ -64,8 +64,11 @@ + + + @@ -73,6 +76,7 @@ + @@ -96,6 +100,10 @@ + + + +