Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6717215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:49:35+00:00 2026-05-26T08:49:35+00:00

i have the habbit to comment properties and classes with the standard XML documentation,

  • 0

i have the habbit to comment properties and classes with the standard XML documentation, what it means / what they do.

But in EF generated classes off course, these are all gone when i regenerate the model.

Is there another way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:49:35+00:00Added an answer on May 26, 2026 at 8:49 am

    As Ladislav stated in his answer, you need to modify the T4 template so the comments will be included in the generated code. This answer was taken from this article:

    First of all you need to specify your comments in the properties boxes of the model designer. Under Documentation -> Long Description, and Summary.

    Then in the template, you can for example add this above the property you want to document:

    <#if (!ReferenceEquals(edmProperty.Documentation, null))
    {
    #>
    /// <summary>
    /// <#=edmProperty.Documentation.Summary#> – <#=edmProperty.Documentation.LongDescription#>
    /// </summary>
    <#}#>
    

    This will create a summary block above your property in the generated code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have worked a few places which haven’t used source control. They seemed to
I am an old school C programmer and I have the habbit of putting
I am attempting to build std::vectors and std::maps of std::shared_ptrs , but they seem
CUDA has lots of documentation and guides all over the place, but one I
I have a habit of keeping my variable usage to a bare minimum. So
I have a habit of hardcoding URLs into my HTML: ...<a href=www.mySite.com/login>logon to your
Some of the developers on the project I work on have a habit of
Coming from C/C++ a long time ago I still have a habit of ensuring
I have a bad habit of using the cursor keys of my keyboard to
I have this horrible habit of typing the below and not catching it until

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.