Click here to Skip to main content
15,891,621 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I was wondering if there is an easy way to import the column-description (or comments) from an SQL-Server 2008 database schema to an EntityModel(ideally xml-comments on the generated properties)in EF 4?

[edit]
I re-formulated the question in my comment:

I create an EntityFramework 4 EntityModel (edmx-file) from my SQL-Server 2008 database with VisualStudion 2010, EntityFramework generates an class structure representing my database - but it doesn't take the comments from the database, but generates empty summary blocks on the code (C# in my case).

So my question is: how to get the comments during/after creating/updating the model out of the database?
Posted
Updated 20-Mar-12 11:56am
v2

1 solution

I have used Microsoft Visio to reverse engineer databases in ER since 2005 (I am still on Microsoft Visio 2003). I use it to create software documentation. The result is a nice ER Diagram. You can get the schema properties as well on the diagram.

[edited]: Oh, and yes, it is very easy. You simply specify ODBC connection properties and password, and wait for Visio to do its job --- which took about a minute. And you got your ERD on screen :)

hth,
foxyland
 
Share this answer
 
v2
Comments
johannesnestler 20-Mar-12 17:54pm    
Thank you for your solution. But I don't know if this helps me much... Most important reason - I have no Viso... forgive me I didn't understand what you was trying to tell me... Maybe I should try to formulate my question a little clearer. If I create an EntityFramework 4 EntityModel (edmx-file) from my SQL-Server 2008 database with VisualStudion 2010. EF then generates an class structure representing my database - but it doesn't take the comments from the database, but generates empty summary blocks on the code (C# in my case). So my question is: how to get the comments during/after creating/updating the model out of the database?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900