diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-10 15:24:06 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-10 15:24:06 +0300 |
| commit | 5d795170b304199383ac967583830acaf313ff05 (patch) | |
| tree | f8888b3ae72410a02a4b7361c235540138950ac8 /Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml | |
| parent | 9244c34a40d572f071cdf1c00ad6428132e1ab5c (diff) | |
| download | Tango-5d795170b304199383ac967583830acaf313ff05.tar.gz Tango-5d795170b304199383ac967583830acaf313ff05.zip | |
Some work on PPC.
Implemented retrieval of column description for auto generated observables & pmr's.
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml')
| -rw-r--r-- | Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml | 21 |
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]" : "") |
