0

即使我从实体框架项目复制并粘贴连接字符串后,我也无法理解为什么我的 mvc 项目仍然抛出异常

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.


  <connectionStrings>
    <add name="DBEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(local);initial catalog=theDatabase;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>

有任何想法吗?

4

0 回答 0