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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
This will create a summary block above your property in the generated code.