I've got one solution - the one project is class library with .edmx data model The other is asp.net web forms project.
when i start the solution I get the following exception:
The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
and when I see the references in my asp.net project I see the reference to my class and I can't see reference to entity framework. But the problem is that entity framework is installed both in my class library and web project
I think your EntityFramework
version was confused
Please download the correct version by using the NuGet
package installer.
See this discussion for getting started: The type or namespace name 'DbContext' could not be found
And look this same problem and Answer : is Here
I found this solution suitable for me.
Adding Entity Framework DLL Reference:-
Go to c:\Program Files (x86)\Microsoft ASP.NET\ASP.NETMVC 4\Packages\EntityFramework 5.0.0-rc\lib\net45
Add Entity framework DLL