Entity Framework Code First - Is there a way to cr

2020-05-03 06:19发布

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.

2条回答
Summer. ? 凉城
2楼-- · 2020-05-03 06:47

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

查看更多
在下西门庆
3楼-- · 2020-05-03 07:01

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.

enter image description here

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?

查看更多
登录 后发表回答