EF6, Code-First, enable-migrations, "Unable to load the specified metadata resource"

code-first ef-migrations entity-framework entity-framework-6

Accepted Answer

  1. Make sure the project with dbContext is selected in the Package Manager console window if your solution has more than one project.
  2. ConnectionString with a name equal to the DbContext class is used in migrations. It is OrganisationsContext in your case but not Leegz Entities Organisations.
5
4/25/2014 5:26:33 AM

Popular Answer

ZZZ_tmp


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