如何在没有 .tt 和 edmx 文件的情况下从数据库优先方法获取表?

How to get tables from database first approach without .tt and edmx files?

我正在研究数据库优先方法。我遵循了以下 link

https://msdn.microsoft.com/en-us/data/jj200620

我可以获取 cs 文件。但是 cs 文件在 edmx 文件夹下。但我想直接获取 cs 文件,就像代码优先方法一样

我正在使用 entity framework 6 和 mvc 5

这是我的屏幕截图

为了 "Code First from database" 安装最新的 Entity Framework 工具 Visual Studio 2012/2013(版本 6.1.3)