Comments on the table columns in Entity Developer
Comments on the table columns in Entity Developer
When I use the Entity Developer Database Reverse Engineering Wizard to consume my PostgreSQL database schema only the comments for the database table get reflected in the entity class. My comment on each column of the table does not get reflected in the entity property.
You can make some modifications to the code generation template.
Go to the Tools->Entity Developer->Templates...
Create a new template, load the code from the "Entity C#" template (or from the other, I took this one for example).
Make the following changes:
1. Replace the
with
2. Add a GenerateClassDocumentation method like the following:
As you can see, the only difference with the GenerateDocumentation method is the fact that Summary and LongDescription are swapped.
3. Save the template.
4. Double-click the model surface (to open the model properties) and select the template you have just created. Save the model.
After these steps the table comments will be placed in the Summary section of the class documentation.
Go to the Tools->Entity Developer->Templates...
Create a new template, load the code from the "Entity C#" template (or from the other, I took this one for example).
Make the following changes:
1. Replace the
Code: Select all
GenerateDocumentation(cls.Documentation, cls.FullName);
Code: Select all
GenerateClassDocumentation(cls.Documentation, cls.FullName);
Code: Select all
///
///
/// There are no comments for in the schema.
///
///
///
///
3. Save the template.
4. Double-click the model surface (to open the model properties) and select the template you have just created. Save the model.
After these steps the table comments will be placed in the Summary section of the class documentation.
Comments on the table columns in Entity Developer
I am on built 4.95.190 which got released today. I still don’t have the feature described above working yet?
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
We have released the 5.0.46 Beta version of dotConnect for PostgreSQL. This build includes the fix for comments not shown in entity field description. For the detailed information about the improvements available in dotConnect for PostgreSQL Beta 5.0, please refer to
http://www.devart.com/forums/viewtopic.php?t=19498
The Beta 5.0.46 build can be downloaded from
http://www.devart.com/dotconnect/postgr ... nload.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/
http://www.devart.com/forums/viewtopic.php?t=19498
The Beta 5.0.46 build can be downloaded from
http://www.devart.com/dotconnect/postgr ... nload.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48