Question

My intellisense is not appearing for my DbSet class.

DBContext db = new DBContext();
IEnumerable<Element> elements = db.Elements.[NO INTELLISENSE HERE]

The fully qualified name is System.Data.Entity.DbSet.

I have a reference to System.Web.Mvc at the top of my file.

The code compiles and runs without any issues.

What is the problem here and/or how to I go about debugging it and then fixing it?

Was it helpful?

Solution

You need to add a reference to the entity framework lib (to the project where your code resides).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top