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

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:

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.

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

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. F.e., 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.

Related

How to add .Net framework to Visual Studio preview 2019 project

I have downloaded and installed Visual studio .Net Framework 4.8 .
But ,How to add this .Net Framework in Visual studio 2019 Project .
Open the Project menu and select Properties (this menu entry should have a project name in it). In the Application tab of the Properties window, choose your desired framework from the Target framework dropdown.
You do not. Simple.
You claim (title) to use 2019 preview.
That is ANCIENT - like seriously. The trial and free to download pro version are available for a long time and support for more modern technologies got added there over time.
Download, keep updated and it is just there.
We are now in version 16.4 and a LOT of significant updates where pushed out over time.

ADO.NET Data Model Missing Templates From VS 2013

I am trying to do some SQL stuff with Entity Framework, using Visual Studio 2013 and C#.
My issue is that I am missing sevral templates from the "ADO.NET Entity Data Model" item in the template panel of my visual studio.
This is what I have :
And this is what I should get :
Any help would be much appreciated.
*I tried installing the latest version of the entity framework from NuGet, but it did not solve my issue

How to add EntityObject Generator in Visual Studio 2015?

I have installed the latest Entity Framework version (EntityFramework.6.1.3) in VS2015. I have added the EF in the project and deleted the 2 .tt files (edmx_file_name.tt and edmx_file_name.Context.tt) as they were from the DBContext.
Now I am trying to add the EF 6.x code generation template by open the model in the EF Designer, right-click on the design surface and select Add Code Generation Item.
To add the Code Generation in ObjectContext i need to install the EF 6.x EntityObject Generator. I downloaded it from here.
But it I couldn't install it in VS 2015.
How do I solve this?
Well, for all those poor souls like me that no longer have VS2013 installed, there's much easier option. You can just install the EF 6.x EntityObject Generator for C# for VS2015.
Sure, the VSIX will shout at you that it's not meant for 2015. Just ignore it :)
The fact that it is not supported or advertised as "compatible with VS2015" does not imply that it does not work. It's a pack of T4 templates. Their syntax or features have not changed much since then.
Download the VSIX from marketplace, save it somewhere, unzip it (that's just a ZIP archive) and then edit file called: extension.vsixmanifest. Inside you will find such block:
<SupportedProducts>
<VisualStudio Version="10.0">
<Edition>VCSExpress</Edition>
<Edition>VWDExpress</Edition>
<Edition>Pro</Edition>
</VisualStudio>
<VisualStudio Version="11.0">
<Edition>VCSExpress</Edition>
<Edition>VWDExpress</Edition>
<Edition>Pro</Edition>
</VisualStudio>
<VisualStudio Version="12.0">
<Edition>VCSExpress</Edition>
<Edition>VWDExpress</Edition>
<Edition>Pro</Edition>
</VisualStudio>
</SupportedProducts>
Copy, paste, add a block for Version="13.0", and maybe futher too (14.0=VS2017?), save, ZIP it back, change extension to .vsix and try to install.
Worked for me on VS2015, installed with no problems, added EntityObject T4 templates, and generated code from EDMX as it was supposed to.
Since until now, no EntityObject Generator Template is supported in Visual Studio 2015, the alter solution is, open your solution with Visual Studio 2013, then open your edmx diagram, right click, select "Add Code generation Item", you will see "EF 6.X EntityObject Generator", if you cannot see it, go to "online" menu, and you will see "EF 6.x EntityObject Generator For C#" display. Select the EntityObject Generator and click "Add" button to add it to you data access layer project. The tt will auto generate EntityObject classes for you. Save the project, exit visual studio 2013. Reopen the solution with visual studio 2015. Done.

Oracle Data Provider for .NET with Entity Framework 6.0

I have a problem with Oracle Data Provider for .NET. I have:
just disinstalled and reinstalled new version of Oracle, I have now 12.1.0
Visual Studio 2015
Oracle Developer Tool for Visual Studio
I want to create a ASP.NET Web Application with Entity Framework 6.0. If I open one of my old projects or when I create a new one and download from Nuget Oracle.ManagedDataAccess and Oracle.ManagedDataAccessEntityFramework this appears:
and if I click OK, I continue and create a model based on Oracle it always says that my EntityFramework is not correct for that provider even if I followed this link or it crashes after setting the connection and click "Next".
What's wrong? Please help me..
Thats how I solved it:
Remove all folders wich names contains "Oracle" from:
Windows\Microsoft.NET\assembly\
Windows\assembly\
Then restart Visual Studio and it will work.
I used cmd in administrator mode to do that, because explorer or other file managers did not allow me to remove that folders.

Why can't I create an OData service?

My machine has VS 2010 Premium installed and I'm having a bit of trouble with item templates.
I'm wanting to follow along with a simple MSDN Tutorial to build an OData service so I can learn about them. It says I need to create an ASP.Net application, which I did. Next it says to add an "ADO.NET Entity Data Model" item, which I don't have available in my item templates.
Even worse, there is no "WCF Data Service" which is kind of crucial for this exercise. What am I missing? Is there some type of SDK or other download that installs OData/WCF Data Service components and templates?
Update
I looked at the install logs for ADO.Net Entity Framework Tools and it appears that it installed all the templates into an old VS 2010 *express edition folder. I no longer have that installed, is there a tool or a method to remove any traces of express so the installer will deploy files to the premium edition I have installed?
Problem Source: ADO.Net Entity Framework Tools must have been installed with VS 2010 Express which was installed before Premium. When I uninstalled Express it must have kept ADO.Net EF tools and it's references to Express. This is what I did to fix it:
Uninstalled "Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools" from Control Panel
On the VS 2010 Setup disc, navigated to \WCU\EFTools with the command line
Used msiexec: msiexec /i ADONETEntityFrameworkTools_enu.msi USING_EXUIH=1 to install by itself (VS 2010 maintenance mode wouldn't install it again after I removed it)
Now I have all the appropriate templates to create OData services :)

Categories