aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2019-09-25 18:29:51 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2019-09-25 18:29:51 +0300
commit051e3ca3f4039ec0d23408d9940b90bde1b4e857 (patch)
tree2486df93b0bb7950aaf8f92fc145617ba58af049 /Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
parentd990cf35a8816c7447fef4552ee83d041466636d (diff)
parent18cb19e1a4f998bec498d509e755a1deb7ffd455 (diff)
downloadTango-051e3ca3f4039ec0d23408d9940b90bde1b4e857.tar.gz
Tango-051e3ca3f4039ec0d23408d9940b90bde1b4e857.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml')
-rw-r--r--Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml8
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
index b5d47edab..950e24f79 100644
--- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
+++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
@@ -18,6 +18,7 @@ using Newtonsoft.Json;
using System.Linq;
using Tango.DAL.Remote.DB;
using Tango.Core;
+using System.ComponentModel;
namespace Tango.BL.Entities
{
@@ -66,6 +67,13 @@ namespace Tango.BL.Entities
@(prop.IsForeignKey ? "[ForeignKey(\"" + prop.ForeignKeyName + "\")]" : "")
@(prop.XmlIgnore ? "[XmlIgnore]" : "")
@(prop.XmlIgnore ? "[JsonIgnore]" : "")
+ @if (prop.RangeDescription != null)
+ {
+ <div>
+ [Description("@(prop.RangeDescription.Description)")]
+ [Range(@(prop.RangeDescription.Min),@(prop.RangeDescription.Max))]
+ </div>
+ }
public @(prop.Construct || prop.Complex ? "virtual" : "") @(prop.Type) @(prop.Name)
{
get { return _@(prop.Name.ToLower()); }