Posted on 2011-10-13
I created a new MVC3 application in Visual Studio .NET and added, to the References, System.Data.Entity, and included "using System.Data.Entity" in a .cs file.
However, when I try to use properties/methods/etc of System.Data.Entity, nothing exists. For example, DbSet<>. When I type in System.Data.Entity. intellisense brings up nothing.
System.Data.Entity is being referenced and used in another application and it works fine there.
I've tried adding <add namespace="System.Data.Entity"/> to the Web.config file as well as <add assembly="System.Data.Entity, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> but that didn't help.
I've tried deleting the reference and readding it and that didn't work.