We Moved - This Forum is now Read-Only

Our new community is now available at https://support.submain.com/community/. We will leave historical discussions here in this forum view-only mode for search purposes, but moving forward, please post your questions in the appropriate category in the new community.

 
  SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

c# Property Summary of PartialClass MetaData

Last post 02-27-2018, 12:00 AM by SchmittSeb. 4 replies.
Sort Posts: Previous Next
  •  02-26-2018, 12:16 AM 5075

    c# Property Summary of PartialClass MetaData

    Hello,

    i have the following construction:

    Normal 0 21 false false false DE X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Normale Tabelle"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;}

    File1:

    namespace Models.EF

    {

        public partial class TABELLE

        {

            public long SATZART { get; set; }

        }

    }

     

     

    File2:

    namespace Models.EF

    {

        /// <summary>

        /// Hier nichts zu tun, keine Properties, GARNIX, reiner Link auf die MetaDatenKlasse

        /// </summary>

        [MetadataType(typeof(TABELLEMetadata))]

        public partial class TABELLE : Pruefungen.EffValidate

        {

        }

     

     

        internal sealed class TABELLEMetadata

        {

     

            /// <summary>

            /// Die Satzartnummer

            /// </summary>

            /// <value>

            /// int - 5Stellig

            /// </value>

            [Key]

            [Required]

            [Annotations.EffRangeMax5]

            public object SATZART { get; set; }

        }

    }

     So the summary of the Property "SATZART" is stored in the partial class metadata (TABELLEMetadata)

    i cant change the initial file with the property SATZART because it is auto generated(Entity Framework)

     

    How can I see the summary in my GhostDoc generated Website Documentation ?

     

     

    Filed under: , , ,
  •  02-26-2018, 10:32 PM 5078 in reply to 5075

    Re: c# Property Summary of PartialClass MetaData

    Hello,

    It is not clear for us what output you'd like to have. Would you like to see TABELLEMetadata->​SATZART XML comment in TABELLE->SATZART in a help file? 

     

     


    Thank you,
    Misha Zhutov
    http://submain.com - .NET Developer Tools | Microsoft VB MVP
  •  02-26-2018, 11:23 PM 5079 in reply to 5078

    Re: c# Property Summary of PartialClass MetaData

    Misha Zhutov (SubMain):

    It is not clear for us what output you'd like to have. Would you like to see TABELLEMetadata->​SATZART XML comment in TABELLE->SATZART in a help file?

     

    Hello, that is totally the thing I intend to do.

  •  02-26-2018, 11:55 PM 5080 in reply to 5079

    Re: c# Property Summary of PartialClass MetaData

    GhostDoc cannot do that. We don't analyze metadata attributes to produce XML comments. As far as we know MetadataType attribute is used to define additional attributes but not XML comments.
    Thank you,
    Misha Zhutov
    http://submain.com - .NET Developer Tools | Microsoft VB MVP
  •  02-27-2018, 12:00 AM 5081 in reply to 5080

    Re: c# Property Summary of PartialClass MetaData

    Thank you for the clear and fast information.

    Then I have to find another way.

View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |