0
我在3层解决方案中使用实体框架实现了WCF服务。我懂了工作,但令人不解的我就是我为什么要复制连接字符串到配置文件(配置文件C1,用于通过实体框架从数据库中检索模式信息指定)使用WCF C2服务? Namelly,如果我不复制连接字符串,然后我得到:WCF,实体框架和N层解决方案
FaultException: The specified named connection is either not found in the confiuration,
not intended to be used with the EntityClient provider, or not valid.
如此看来,C1的连接字符串在设计时使用实体框架,而运行时的连接字符串中规定C2被用来连接到数据库?为什么?
谢谢
非常感谢你 – user702769 2012-03-29 21:28:36