aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-07-11 08:29:49 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-07-11 08:29:49 +0300
commit188b57245979e061c4d0a9bc51f98ceb85f2d9d8 (patch)
tree231d5e3fe118faa3f7c97b7439770b1327d4a130 /Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
parent07c8423a7a09fda502cb64948cac2ec717622d43 (diff)
parentd65e5f1a23374de2872a73034e430e4a70ee4269 (diff)
downloadTango-188b57245979e061c4d0a9bc51f98ceb85f2d9d8.tar.gz
Tango-188b57245979e061c4d0a9bc51f98ceb85f2d9d8.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.cshtml21
1 files changed, 21 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
index ee2d2ea12..873668545 100644
--- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
+++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml
@@ -20,6 +20,14 @@ using Tango.DAL.Remote.DB;
namespace Tango.BL.Entities
{
+ @if (Model.Description != null)
+ {
+ <div>
+ /// <summary>
+ /// @(Model.Description)
+ /// </summary>
+ </div>
+ }
[Table("@(Model.TableName)")]
public partial class @(Model.Name) : ObservableEntity<@(Model.Name)>
{
@@ -27,9 +35,22 @@ namespace Tango.BL.Entities
{
<div>
protected @(prop.Type) _@(prop.Name.ToLower());
+ @if (prop.DbDescription != null)
+ {
+ <div>
+ /// <summary>
+ @(prop.DbDescription)
+ /// </summary>
+ </div>
+ }
+ else
+ {
+ <div>
/// <summary>
/// Gets or sets the @(Model.Name.ToLower()) @(prop.Description).
/// </summary>
+ </div>
+ }
@(!prop.Construct && !prop.Complex ? "[Column(\"" + prop.FieldName + "\")]" : "")
@(prop.IsForeignKey ? "[ForeignKey(\"" + prop.ForeignKeyName + "\")]" : "")
@(prop.XmlIgnore ? "[XmlIgnore]" : "")