简体   繁体   English

.net核心数据库图

[英]Database diagram on .net core

On a .NET application we could auto generate .edmx file from database and can see its diagram by double clicking on that .edmx file. 在.NET应用程序中,我们可以从数据库自动生成.edmx文件,并通过双击该.edmx文件查看其图表。 Now my question is since .NET Core does not allow to generate .edmx file then how i can see database diagram visually like the picture bellow? 现在我的问题是,因为.NET Core不允许生成.edmx文件然后我如何在视觉上看到数据库图如下图所示? Is there any valid way to do it on .NET Core? 有没有有效的方法在.NET Core上执行此操作?

PIC

Whats the diff between class diagram and database diagram? 什么是类图和数据库图之间的差异?

Technically that's a diagram of your Conceptual Model, the Edmx file contains the Conceptual Model, and explicit mapping metadata to map the Conceptual Model to a Storage Model on one side, and an Object Model on the other side. 从技术上讲,这是概念模型的图表,Edmx文件包含概念模型,显式映射元数据用于将概念模型一方面映射到存储模型,另一方面映射对象模型。 EF has since moved away from the explicit mapping in the .Edmx and uses a combination of Conventions, Fluent Configuration and Class Annotations to generate the mapping at runtime. EF已经从.Edmx中的显式映射中移开,并使用约定,Fluent配置和类注释的组合在运行时生成映射。 This is called "Code First", although in practice you often generate a "Code First" model from an existing Database. 这称为“代码优先”,但实际上您经常从现有数据库生成“代码优先”模型。

In EF6 Code First the Conceptual Model and Storage Model still technically exist, they are just generated at runtime from your Object Model. 在EF6 Code First中,概念模型和存储模型在技术上仍然存在,它们只是在运行时从您的对象模型生成。 In EF Core one of the main design goals was to remove the limitations and complexity of this older 3-Model design, and the Conceptual Model (which is what the design surface of an EDMX displays) is gone altogether. 在EF Core中,主要设计目标之一是消除这种旧型3模型设计的局限性和复杂性,而概念模型(这是EDMX显示器的设计表面)完全消失了。 No Conceptual Model, no .Edmx, no graphical designer. 没有概念模型,没有.Edmx,没有图形设计师。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM