我有一個數據庫(SQL 2008 mdf文件),一個帶有edmx文件的類庫項目,使用嚮導創建。所以連接字符串也由嚮導完成。 該項目位於teamfoundation服務器上。連接字符串和實體框架問題
編碼時我可以使用所有嚮導製作的對象。
但是當我運行該程序,我試圖使entityContainerName,程序崩潰,並給出了這個錯誤:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
在這條線: 公共TestEntities():基地(「NAME = TestEntities」 ,「TestEntities」)
我該如何解決這個問題,或者我做錯了什麼?
+1爲快速修復:-) – Stimul8d 2010-10-20 08:17:31