Comments on the table columns in Entity Developer

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
muthu
Posts: 10
Joined: Tue 28 Sep 2010 19:31

Comments on the table columns in Entity Developer

Post by muthu » Tue 28 Sep 2010 19:35

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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 29 Sep 2010 08:01

Thank you for the report, this functionality is already implemented, and will be available in the upcoming Beta build.

muthu
Posts: 10
Joined: Tue 28 Sep 2010 19:31

Post by muthu » Wed 29 Sep 2010 11:35

Thanks for the immediate response. Just wondering when can I ask expect an upgrade to postgreSQL 9.0.

Cheers,
Muthu

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 29 Sep 2010 12:52

We are in the process of testing the Postgres 9.0 server.
I will post here as soon as any new information is available.

muthu
Posts: 10
Joined: Tue 28 Sep 2010 19:31

Post by muthu » Wed 29 Sep 2010 13:25

Hii Andrey,
Another quick question, how do I get my comments to populate on the summary instead of the long description under the documentation property in the entity developer.
Thanks, Muthu

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 29 Sep 2010 15:27

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

Code: Select all

GenerateDocumentation(cls.Documentation, cls.FullName); 
with

Code: Select all

GenerateClassDocumentation(cls.Documentation, cls.FullName); 
2. Add a GenerateClassDocumentation method like the following:

Code: Select all


    /// 

    /// 

    /// There are no comments for  in the schema.

    /// 

    /// 

    /// 

    /// 

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.

muthu
Posts: 10
Joined: Tue 28 Sep 2010 19:31

Comments on the table columns in Entity Developer

Post by muthu » Fri 05 Nov 2010 11:45

I am on built 4.95.190 which got released today. I still don’t have the feature described above working yet? :(

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Mon 08 Nov 2010 15:07

The fix will be available in the nearest build of dotConnect for PostgreSQL 5.0.; we will inform you when the corresponding build is released.

Also, dotConnect for PostgreSQL was tested with PostgreSQL 9.0, and we found no compatibility problems.

muthu
Posts: 10
Joined: Tue 28 Sep 2010 19:31

Post by muthu » Tue 09 Nov 2010 14:40

Hii Stanislav,
When can we expect the PostgreSQL 5.0 release ? Is there any 5.0 beta build which has this issue resolved that I can try now ?
Thanks, Muthu

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Wed 10 Nov 2010 09:41

We plan to release a Beta version that will include this fix in several days. We will inform you when this build is published.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Fri 12 Nov 2010 09:13

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/

cjbiggs
Posts: 105
Joined: Fri 15 Jan 2010 19:56

Post by cjbiggs » Sat 13 Nov 2010 02:32

Does this include all fixes that was put into dotConnect for Postgres 4.95.190?

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Mon 15 Nov 2010 13:24

Yes, all fixes implemented in the 4.95.190 build should be available in Beta 5.0.46 as well.

Post Reply