C# Entity Framework Basics Introducing Entity Framework Adding Our Context

Andre Martins
Andre Martins
1,629 Points

VS not recognizing a DbContext and not displaying the "using System.Data.Entity;" option, neither recognizing it if typd

Visual Studio not recognizing the System.Data.Entity Class when trying the example given in the video. It only gives option for System.Runtime.Remoting.Contexts. Where there any changes in Visual Studio or ASP.NET that has been deprecated. James Churcill talks about DbContext as a deprecated class. What am I doing wrong? Did I miss the instalation of something?

Andre Martins
Andre Martins
1,629 Points

Okay, I found out that I´m missing the EntityFramework package available from the BuGet Package Manager.

1 Answer

HIDAYATULLAH ARGHANDABI
HIDAYATULLAH ARGHANDABI
20,983 Points

Dear Andre Martins, You have not installed entityFramework to your project. You can install the entityframework by right clicking the project and select NuGet packing option. Go to the install tab search for the EntityFramework and install it. I wish it help