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