From c16f47eb401a12f034eecf75924680262285e1f4 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 19 Mar 2018 18:16:30 +0200 Subject: Working on android DAL. --- .../Tango.CodeGeneration/EntityCodeFileJava.cs | 7 ++++- .../EntityCodeFileJavaExtension.cs | 34 ++++++++++++++++++++++ .../Tango.CodeGeneration.csproj | 2 ++ .../Templates/EntityCodeFileJava.cshtml | 5 +--- .../Templates/EntityCodeFileJavaExtension.cshtml | 11 +++++++ .../ObservablesGenerator.cs | 19 ++++++++++-- 6 files changed, 71 insertions(+), 7 deletions(-) create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJavaExtension.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJavaExtension.cshtml (limited to 'Software/Visual_Studio') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs index 194cd0fc1..0ff4f47d0 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJava.cs @@ -10,13 +10,18 @@ namespace Tango.CodeGeneration /// Represents a database entity Java code file. /// /// - public class EntityCodeFileJava : Class + public class EntityCodeFileJava : Class { /// /// Gets or sets the name of the entity. /// public String EntityName { get; set; } + /// + /// Gets or sets the extends. + /// + public String Extends { get; set; } + /// /// Gets or sets the name of the table. /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJavaExtension.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJavaExtension.cs new file mode 100644 index 000000000..99ea437a6 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFileJavaExtension.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + /// + /// Represents a database entity Java code file. + /// + /// + public class EntityCodeFileJavaExtension : Class + { + /// + /// Gets or sets the extends. + /// + public String Extends { get; set; } + + /// + /// Gets or sets the name of the table. + /// + public String TableName { get; set; } + + /// + /// Initializes a new instance of the class. + /// + /// The name. + public EntityCodeFileJavaExtension(String name, String extends) : base(name) + { + Extends = extends; + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj index 3c6c9d085..db77d9f20 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj +++ b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj @@ -64,6 +64,7 @@ + @@ -111,6 +112,7 @@ +