<?xml version="1.0" encoding="UTF-8"?> 今天用EF遇到一个问题, 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://www.cnblogs.com/muzizongheng/p/3170908.html