C# – Using MVC, Entity Framework cannot find assembly reference

asp.net-mvc-3c++entity-framework

I am trying to use the EntityFramework with mvc 3 in VS. I have installed the EntityFramework under references but when I attempt to use the framework in the line

using System.Data.Entity.ModelConfiguration.Conventions.Edm.db;

I receive an red error under .edm saying

The namespace or name 'Edm' does not exist in the namespace 'System.Data.Entity.ModelConfiguration.Conventions' (are you missing an assembly reference?)

Orginally I thought I had an old version of the EntityFramework, so I unistalled the package and reinstalled the newest version but I still receive the same error.

Is there another package I need to install?

Best Solution

You may find this new MVC 3 / EF tutorial series helpful: http://www.asp.net/entity-framework/tutorials/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application It is based on Code First and the latest Tools Update for MVC 3.