diff options
| author | Avi Levkovich <avi@twine-s.com> | 2018-07-11 11:05:49 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2018-07-11 11:05:49 +0300 |
| commit | 46838f74850f7e26f942da41f240d402d199bebc (patch) | |
| tree | 7187f5115ff628482df07ccb74e6bfb2f608a308 /Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml | |
| parent | 7b439dc2379a69ab67d4d0f5b70e0c412f554963 (diff) | |
| parent | 188b57245979e061c4d0a9bc51f98ceb85f2d9d8 (diff) | |
| download | Tango-46838f74850f7e26f942da41f240d402d199bebc.tar.gz Tango-46838f74850f7e26f942da41f240d402d199bebc.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
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]" : "") |
