首页 新闻 会员 周边

MVC EntityFramework

0
悬赏园豆:10 [已解决问题] 解决于 2014-03-10 11:06

昨天学习了MVC EntityFramework 但在添加控制器的时候出现了无法添加元数据

以下是具体英文:

Using the same DbCompiledModel to create contexts againts diffrent types of database servers is not supported.Instead,create a separate DbCompiledModel for

 each type of server being used.

忧虑的心的主页 忧虑的心 | 初学一级 | 园豆:73
提问于:2014-03-10 09:53
< >
分享
最佳答案
0

是数据库连接字符串的问题,如果用的是SQL Server,建议改为下面的写法:

<add name="连接字符串名称" connectionString="Data Source=服务器服务器名称;Initial Catalog=数据库名称;Integrated Security=True" providerName="System.Data.SqlClient" />
收获园豆:10
dudu | 高人七级 |园豆:31007 | 2014-03-10 10:50
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册