Link to home
Start Free TrialLog in
Avatar of minglelinch
minglelinch

asked on

Refernce to Entity Framework

I have a web MVC project with Entity Framework 4.x working fine.

Now I added a class library project in the same solution, and I have mapped different database tables successfully. .edmx is generated. Then I write a simple test class and try to build the this new project. I got error - The namespace name Infrastructure does not exist in a namespace System.Data.Entity ...

I googled it and was said I need a reference to the EntityFramework or need to install EntityFramework. I'm confused, as I already have a web MVC project working, and also .edmx has been built in the new class library project. So EntityFramework should not be a problem...?

What should do to remove this error?

I may need to add a reference to the class library project in the existing web project, so that the web project can use classes defined in the class library project, right?

I appreciate any help.
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of minglelinch
minglelinch

ASKER

Thank you