VS2010 MVC and Entity Framework Model in Separate Project
Posted
by mdm
on Stack Overflow
See other posts from Stack Overflow
or by mdm
Published on 2010-05-26T09:49:38Z
Indexed on
2010/05/26
12:01 UTC
Read the original article
Hit count: 407
Hi, I am trying to use an Entity Framework Model (in separate project) into an asp.net 4 MVC project (VS2010, C#) If I create the EF inside the MVC project I have no problems. I think I am missing some step.
things done: 1. added reference to the EF class project 2. added connection string in MVC web.config 3. added reference to System.Data.Entity in both web.config and project references
Now i can use the model only if I copy the .edmx file to the Models folder, but in this way the EF project is not external anymore.
What am I missing? Thank you in advance.
© Stack Overflow or respective owner