Entity Framework cannot identify an assembly reference while using MVC.

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

Question

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?

1
2
4/21/2011 7:12:21 PM

Popular Answer

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.

2
4/21/2011 9:58:15 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow