Code First - UML - Modeling of database - visual view possible?

依然范特西╮ 提交于 2019-12-23 06:04:11

问题


I love how model first gives a visual overview of the database.

But now the Ado.Net team pushes code first, i'd think it would be awesome to generate an UML overview of the database through your classes.

Does this already exists? As i can't seem to find it :(


回答1:


Yes it exists as part of EF Power Tools CTP1 where you can generate read-only EDMX from your code first mapping. It is not UML but it is the same diagram you had with model first.




回答2:


UML is representing an object approach while data modeling is business entities related. This is why datamodeling will never be UML modeling.

In Java the Red Hat group uses the hibernate project to add annotations directly on the java object represented as classes. The trick I use is to reverse engineer my java code into UML classes and also reverse engineer my hibernate annotation as stereotypes. It means that at the same time you can define your object approach and also create your persistence layer which is visible inside your UML class diagram.

Really cool !!



来源:https://stackoverflow.com/questions/7384420/code-first-uml-modeling-of-database-visual-view-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!