The specified named connection is either not found in the configuration, not intended to be used
原因是我的EF中数据库连接字符串放到App.Config文件中, 而我另一个工程使用此工程时没有添加App.Config 或者Web.Config
解决办法:
在调用工程中添加App.Config, 或者Web.Config , 然后把EF工程中的连接字符串添加到此config文件里。
https://muzizongheng.blog.csdn.net/