views:

105

answers:

2

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.

A: 

Have you set the entity model to create public classes? (Set in the models properties, and each of its entities.)

Richard
Hi, thank you for your answer.I've checked, and all the entities are already with public access (as it is by default, since i don't think I've touched this setting)
mdm
A: 

You may use with DLL for sharing other projects.

GMz