简体   繁体   中英

Where are Entity Framework Tools in EF6 and Visual Studio 2017?

I'm using Visual Studio 2017 and Entity Framework 6, and for the life of me, I cannot find the EDMX file, Entity Data Tools, Model Browser, or Entity Designer...

Am I losing my mind here? I've created multiple new projects trying to find these UI-based tools for working with the Entity Framework data models and can't seem to get anywhere.

Please help!

I believe I have the correct tools installed in the VS2017 Install:

VS2017安装选项的图片

For anyone looking at this, in my case the answer was that I was using a Code-First implementation of the Entity Framework, which apparently does NOT give you access to the Visual Tools.

So there is no EDMX file in Code-First Entity Framework.

At the installation of VS2017 you had to go to Individual Components to install those tools, don't think they are installed by default.

  • Individual Components
    • SDK, Libraries and Components

You can run this install from the VS Installer

Entity Framework not appearing in Add New Item list in Visual Studio 2017

Please also see the current documentation . They state that for current Visual Studio versions, the tools will be included. For previous versions, separate installers (MSI packages, not extensions) are available for download at the Microsoft Download Center. Fe, see Visual Studio Releases > Visual Studio 2013 , which will tell you where to find the MSI for Visual Studio 2013.

As in response to gotmike's accepted answer, today there's an 3rd party marketplace extension called Entity Framework Visual Editor , which can be used (I didn't try it myself) to generate a visual representation out of the code first model/POCO classes.

Also note that the Entity Framework Power Tools always had the feature to preview code first entities in a designer view called "View Entity Data Model (Read-only)". This option appears in your context menu when you select a model class derived from DbContext.

I had similar issue. I reinstalled Entity Framework 6 tools without luck, even reinstalled SQL tools (sorry, forgot exact name). But solution was very simple:

right-click the edmx file-> choose Open with->choose ADO.NET Entity Data Model Designer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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