ASP.NET System.Data.EntityClient connection string help

后端 未结 3 462
悲&欢浪女
悲&欢浪女 2020-12-11 05:11

I\'m running ASP.NET MVC on a shared server and I\'m having problems connecting to SQL via System.Data.EntityClient. Below is the connection string that my hosing provider

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 05:44

    Change the provider from entityclient to sqlclient (assume code first EF).

    providerName="System.Data.EntityClient" />

    to

    providerName="System.Data.SqlClient" />

提交回复
热议问题