如果解决方法中有多个项目存在,记住要在默认项目中选择你需要的项目进行 enable-migrations add-migration 以及updatebase
No context type was found in the assembly
原文:http://www.cnblogs.com/engineerlm/p/6443585.html