您的位置:首页 > 其它

keyword not supported data source 或者Keyword not supported: 'server'的问题解决办法

2012-09-04 23:45 357 查看
What you have is a valid ADO.NET connection string - but it's NOT a valid Entity Framework connection string.

The EF connection string would look something like this:

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


Inside this connection string, you'll find the
provider connection string=
attribute which is basically your ADO.NET connection string:

provider connection string="data source=(local);initial catalog=test;integrated security=True;multipleactiveresultsets=True;App=EntityFramework""


So here, you need to change your server name and possibly other settings.

data source=....
stands for your server (you can also use
server=.....
)

initial catalog=.....
stands for your database (you can also use
database=....
)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐