I have Visual Studio 2017 installed (the latest release). I added the Entity Framework package via Nuget, but I am unable to add an ADO.Net Entity Framework object to my project, as nothing appears in the item list. Any ideas? Thanks.
List of data components available when adding a new item to the project
I went with the latest Entity Framework, ver 6.2. I ended up installing VS 2017 and re-installing. That resolved the issue. Turns out if you had an earlier release of VS 2017, you had to perform some manual steps on the extensions for SSRS and SSAS when SSDT was also installed.
Related
Just installed .NET Core version 3.1.
I'm using Visual Studio 2019, version 16.4.2, so it should be compatible.
But when I try to "create a new project" nothing Core-related shows up in the list, no matter how many ways I try to query.
I'm told it should show up but it doesn't. Haven't a clue as to why (I assume I've missed a step along the way).
VS 2019 16.4.x will always have .NET Core 3.1 as its main target by default, and VS 2019 16.4.0 or later will always install .NET Core 3.1.100 SDK if you select .NET Core workload when you install VS 2019.
If it's not shown when creating new project, then you have to ensure that you have selected the .NET Core workload when you install VS 2019:
Eriawan's answer pointed me in the right direction. The problem was, as suspected, very simple. I had bypassed Core when first installing VS 2019. Just had to use the Installer and install to fix.
I've managed to install Entity Framework on Visual Studio Community 2017 for Mac as a Nuget Package. However, when I try to add ADO.NET Entity Data Model, I can't. I only see options to add files.
How can I resolve this error? I have added the Entity Framework 6.1.3 from this link: Download EntityFramework 6.1.3 for Visual Studio 2013 (after uninstalling and re-installing it again and again)
Now that it has been added and in the project created a .emdx file using ADO.NET Entity Data Model. When I try to build it, the following error pops:
EntityFramework.dll not found (after Compilation)
Don't uninstall the Visual Studio. Installing the Entity Framework 6 Tools for Visual Studio, only makes it possible to use EF features in the VS IDE.
To use EF in your application install the NuGet Package for EF:
Install-Package EntityFramework
The EntityFramework.dll and EntityFramework.SqlServer.dll are added to your solution.
I have a wonderful solution in Visual Studio 2012 with a Web project using WebAPI and a supporting Web Service project for data using Entity Framework (EF) Code First. I was just told I need to see about using Visual Studio 2010.
Is there something I can do to work on this project in Visual Studio 2010?
As Henrick answers: you do not upgrade/downgrade VS installs, rather you install versions side by side.
You note two technologies that might be problematic:
EF Code First: this is supported from 4.1 (or was it 4.2?) which is supported against .NET 4.0 and VS2010. Providing your not using enum or geo/spatial data types (which require .NET 4.5) this should work, but you'll need to ensure you update to the EF5 NuGet package for .NET 4.
WebAPI: This is new in MVC4, which comes with VS2012, but is a separate install for .NET 4/VS2010.
Finally. While some project types with round trip between VS2012 and VS2010 SP1 (you need the service pack) it is not true for all project types. Details are on MSDN.
You can install Visual Studio 2010 separately and open the project and see. There is no danger in having version 2005, 2008, 2010 or 2012 of Visual Studio installed.
I have Visual Studio 2008 and 2010 (both Professional editions) installed. I installed Entity Framework 4.1 but after that neither VS-2008 nor VS-2010 is showing ADO.NET Entity Data Model in the choices when I select Add New Item from the Solution Explorer.
I tried Maintenance option of the Setup and re-installed VS 2010, but still EF is unavailable, whereas it is being listed in Windows uninstall programs list. I even tried installing NuGet package, but still it is unavailable.
How to resolve this conflict?
Make sure you have set your Target framework to .net 3.5 SP1+.
Also, Install Visual Studio 2008 Service Pack 1, since I've seen people not being able to see the ADO.NET Entity Data Model because they have not installed VS2008 SP1.