Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
21,058 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