Akshay Chawla
Akshay Chawla

Reputation: 613

"Microsoft.Data.Entity" dll not found in nuget

For one of my projects i am using asp.net mvc core and in this web application, for using EntityFramework i am not able to download 'Microsoft.Data.Entity' from nuget.

Upvotes: 0

Views: 3051

Answers (3)

Sameer Bahad
Sameer Bahad

Reputation: 583

you have to install 2 package using the package manager

Microsoft.EntityFrameworkCore.SqlServer

Then in your code, require it:

using Microsoft.EntityFrameworkCore;

Upvotes: 1

Akshay Chawla
Akshay Chawla

Reputation: 613

It was due to ASP.Net Core framework was not installed correctly, i tried it in Visual Studio 2017 and guess what it worked perfectly.

Upvotes: 0

ErikEJ
ErikEJ

Reputation: 41799

The package you need for EF Core is:

Microsoft.EntityFrameworkCore.SqlServer

Upvotes: 0

Related Questions