I am using EF4 within a MVC3 application and I was looking for a way to view all my contacts within a given workgroup. In the controller I specified:
var wg
I was also getting this error and resolved it by adding the following reference:
using System.Data.Entity;