我有一个数据库(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