VS2010 MVC and Entity platform model in a separate project

I am trying to use the Entity structure model (in a separate project) in an asp.net 4 MVC project (VS2010, C #) If I create EF inside an MVC project, I have no problem. I think I missed some step.

things done: 1. added a link to an EF class project 2. added a connection string to MVC web.config 3. added a link to System.Data.Entity both in web.config files and in projects

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 no longer external.

What am I missing? Thank you in advance.

+3
source share
2

? ( .)

0

, , . .

, ( 1 MVC 1 ), .

0

Source: https://habr.com/ru/post/1747159/


All Articles