문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top