原文链接:http://www.cnblogs.com/facingwaller/archive/2010/03/31/1701724.html
S1. 应该是配置文件web.config 或者 app.config 中没有正确配置。
这是我的APP.CONFIG的文件。
1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <configuration> |
3 | <connectionStrings> |
4 | <add name="OrganizeEntities" connectionString="metadata=res://*/AEF2SQL.csdl|res://*/AEF2SQL.ssdl|res://*/AEF2SQL.msl;provider=System.Data.SqlClient;provider connection string="Data Source=QKF;Initial Catalog=Organize;Persist Security Info=True;User ID=sa;Password=111;Pooling=False;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" /> |
5 | </configuration> |
一般情况下配置都是正常的。因为是自动生成的。
S2:如果你的edml文件不在 启动程序的 解决方案/类库 下需要复制过去。

至此如果问题还没解决的话 ,请留言吧。
本文针对Entity Framework在使用过程中遇到的配置错误及EDMX文件放置位置不当等问题进行了详细解析,并给出了具体的解决步骤。
1765

被折叠的 条评论
为什么被折叠?



