问题描述
如果你看 此处 您会注意到这个人正在展示实体模型图,我想知道如何从我的 EntityFramework 代码第一类创建实体模型图.
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.
只是通过查看代码来记住所有内容是如何链接在一起的,这只会令人沮丧.
It just gets frustrating trying to remember how everything links together just by looking at the code.
推荐答案
使用 实体框架Power Tools 安装后,您可以右键单击解决方案视图中的上下文,单击实体框架",然后选择查看实体数据模型".
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代码的可视化模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!