问题
I uploaded my website( that is programmed with asp.net mvc and entity framework 5) yesterday and wrote this connection string in the web.config
file of the host root ( control panel is plesk onyx)
I tried changing it to SqlCLient,Removing some tags, and so many other things but no change it return error:
keyword not supported: 'data source'
when I remove data source it return keyword not supported 'initial catalog' and so on thanks for your attention
<add name="ShopDBEntities" connectionString="Data Source=some source;initial catalog=MainDB;User ID=admin;Password=pass;integrated security=True;App=EntityFramework" providerName="System.Data.EntityClient" />
来源:https://stackoverflow.com/questions/57286577/how-to-use-connection-string-in-c-sharp-codes