Entity Framework Code First - Is there a way to create a model diagram from POCO classes [closed]

China☆狼群 提交于 2019-12-02 17:12:47

问题


I'm really into the new Entity Framework code first features (currently at CTP5 at the moment). One thing which would be ace would be the ability to generate some kind of model diagram from the POCO classes that I build.

Does such a tool exist? Preferably I'm looking for an open source solution if possible.

Cheers. Jas.


回答1:


You can always use built-in class diagram in Visual studio.




回答2:


The MS ADO.NET guys have released a tool that's awesome for diagramming your EF Code-First context. There's more to your EF model than just the POCO classes - for example, the mapping fluent API - and the tool takes it into account.

Without further ado, it's the "EF Power Tools" VS extension (Beta 2 at the time of writing)

Read all about how to install and use it on the related ADO.NET blog post

Be warned, the diagram is read-only, but what would you expect when the input for it is your own code?



来源:https://stackoverflow.com/questions/4925684/entity-framework-code-first-is-there-a-way-to-create-a-model-diagram-from-poco

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