Can't Install Entity Framework via NuGet in ASP.NET MVC - entity-framework

I want to make use of Entity Framework in my project.
So I opened up my package installer console in Visual Studio 2015 and I typed in the following:
Install-Package EntityFramework -projectname SportsStore.Domain
But I get an error! Here is what I get:

Updating NuGet solved it for me.

Related

dotnetcore Nuget enable Pre-Release

I've started using dotnetcore for a hobby project.
I'm having an issue trying to install NLog. The Visual Studio Code editor seems to recognise the beta version as the intelisense suggests it inside the project.json file. However nuget doesn't seem to restore it.
Is there a way to enable pre-release on Nuget packages in the new dotnet core platform?
Is the package on the Nuget repo? Check this link to see if its listed:
https://www.nuget.org/packages/NLog
If it's on there you can just add it to your project.json and then run a dotnet restore to install the nuget, no intellisense required.
I came across the answer to my question whilst watching a PluralSight video on Entity Framework Core By Dr Scott Allen.
One option is to use the visual studio package manager console and use the -pre flag. e.g:
install-package Microsoft.EntityFrameworkCore.tools -pre

entity framework 7 for visual studio code editor

I want to add the entity framework 7 to my asp.net core application in visual studio code editor. Can I add this using command prompt. If can anyone provide commands. Orelse Is there any other ways to do it??
Please advice. Thanks.
Visual Studio Code is an editor and not Visual Studio IDE as you know it, It doesn't install any packages.You have to install them manually.
Here is an tutorial:
https://docs.efproject.net/en/latest/platforms/aspnetcore/new-db.html
You can install the C# extension from the VS Code Marketplace:
ext install csharp
https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp
Installing Entity Framework for .Net Core
In .NET Core just add the project.json(with all required references) to your project and then call:
dotnet restore
Installing EntityFramwork for .Net Full(4.X)
You need Package Manager Console:
Install-Package EntityFramework

Visual Studio 2012 does not have Entity Framework menu

My copy of Visual Studio 2012 does not have Entity Framework menu.
How can I get it?
http://msdn.microsoft.com/zh-cn/data/jj200620
I'm using Visual Studio 2012 Update 2.
There are 2 things to install if using entity framework:
Entity Framework in Package manager console
PM> Install-Package EntityFramework
or
Install-package EntityFramework -pre if after the EF6 in its current state
The Entity Framework powertools
http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d
The powertools offer some good options that appear in that context menu
Remember to right click on a file containing DBContext to get the right behavior.
You can install it from Entity Framework Power Tools. It is an add-on for Visual Studio

upgrade the project from ef4.3 to ef5

I have a project which is using EF4.3, is it possible to upgrade it to EF5? This is, so I can use the new features. My IDE is VS2012.
You can nuget the new package, it should replace your existing .dlls. See the Entity Framework nuget package site.
In package manager console enter:
Install-Package EntityFramework

Entity Framework 4.3 Multi-project installation

I'm confused with regards to my code using latest Entety Framework.
I have 2 projects in the solution. I've used t4 templates to generate Self-Tracking Entities.
In project #1 I have just .edmx files and Entety Framework 4.3 installed thru NuGet PM. Now my second project has template-generated Context classes. So how do I make sure my second project also uses EF 4.3? Do I need to install it separatly for every project in my solution or can I just reference EntityFramework.dll? Thanks.
The Entity Framework package installation is project specific. I'd install it separately, so NuGet can manage the references.
To manage the package installation for multiple projects, open NuGet PM for Solution with
"Tools->Library Package Manager->Nuget Package Manager for Solution..."
Go to the Installed tab (or Online), select EntityFramework and click Manage. Check/Uncheck the projects where to install EntityFramework.
Or, in the console pass the -ProjectName property to the install-package command.