System.Data.Entity. The database could not be found.

asp.net-mvc entity-framework

Question

I can't seem toDataBase in System.Data.Entity .

Does anybody have any idea why?

I'm grateful.

1
18
6/11/2011 12:46:40 PM

Accepted Answer

It's not necessary to importSystem.Data.Entity.Database . TheSystem.Data.Entity is adequate. UseDatabase.SetInitializer in place ofDbDatabase.SetInitializer .

The class is named Database without the "Db" in case you missed it.

22
6/23/2011 12:07:17 PM

Popular Answer

You must make use of theEntityFramework.dll The Database class is defined in the assembly. Installing it required access to the associated NuGet bundle.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow