你如何首先创建的EntityFramework code的可视模型 [英] How do you create a visual model of EntityFramework code first

查看:123
本文介绍了你如何首先创建的EntityFramework code的可视模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你看看<一个href=\"http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-a-more-complex-data-model-for-an-asp-net-mvc-application\">here你会发现,这个家伙正显示出实体模型图,我想知道我可以从我的EntityFramework code头等创建一个实体模型图。

If you look here you will notice that this guy is showing the Entity Model Diagrams, I would like to know how I can create an Entity Model Diagram from my EntityFramework code first classes.

它只是变得沮丧试图仅仅通过在code记住一切是如何联系在一起。

It just gets frustrating trying to remember how everything links together just by looking at the code.

推荐答案

随着实体框架电源工具安装在您的解决方案视图可以右击背景下,点击实体框架,然后选择查看实体数据模型。

With the Entity Frameworks Power Tools installed you can right-click the context in your solution view, click on "Entity Framework", then select "View Entity Data Model".

这会从您的类创建一个整洁的图。

This will create a neat diagram from your classes.

这篇关于你如何首先创建的EntityFramework code的可视模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆