S1.  应该是配置文件web.config 或者 app.config 中没有正确配置。

这是我的APP.CONFIG的文件。

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <connectionStrings>
        <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" />       
</configuration>

   一般情况下配置都是正常的。因为是自动生成的。

S2:如果你的edml文件不在 启动程序的 解决方案/类库 下需要复制过去。

指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效

至此如果问题还没解决的话 ,请留言吧。

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-09-04
  • 2021-09-29
  • 2021-07-12
相关资源
相似解决方案