任何人都可以帮我吗?我遇到了很多错误。我知道这里可能只是语法错误,但我不确定我是否正确行事。
这是smarterasp给我的连接字符串:&#34; Data Source = SQL5006.Smarterasp.net; Initial Catalog = DB_9B7F44_capstone; User Id = DB_9B7F44_capstone_admin; Password = YOUR-PASSWORD;&#34; < / p>
这是我本地机器上的连接字符串:
<connectionStrings> <add name="d_CapstoneEntities1" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=WIN-C43BMU8UF5E\SQLEXPRESS;initial catalog=d_Capstone;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings>
然后我想出了这个,但我仍然得到错误&#34;不支持关键字:&#39;数据源&#39;。&#34;
<add name="d_CapstoneEntities1" providerName="System.Data.EntityClient" connectionString="Data Source=SQL5006.Smarterasp.net;Initial Catalog=DB_9B7F44_capstone;User Id=DB_9B7F44_capstone_admin;Password=YOUR-PASSWORD;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework;"/></connectionStrings>
我首先使用了EF数据库。