Link to build error

I implemented the RoleProvider class, there I created a domain class object that is in another assembly, my assembly has a link to this one.

Error 3 The type "System.Data.Entity.DbContext" is defined in an assembly that is not referenced. You must add a reference to the assembly 'EntityFramework, Version = 6.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089. D: \ Visual Studio 2013 \ Group 06 \ G06_Store \ Store.Facade \ StoreRoleProvider.cs 17 24 Store.Facade

How can I fix this error?

+4
source share
3 answers

, Nuget nuget Entity o = ,

Install-Package EntityFramework .

+5

1) Entity

2) Visual Studio

3) Entity Framework

+3

I also found that if you said the console application as the main project, when starting the unit test project, this error will occur, if you do not have a link to EntityFramework on the unit test, you will also get this error.

0
source

All Articles