zoukankan      html  css  js  c++  java
  • keyword not supported data source 或者Keyword not supported: 'server'的问题解决办法

    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=&quot;data source=(local);initial catalog=test;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" 
         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=&quot;data source=(local);initial catalog=test;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&quot;" 

    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=....)
    作者:dupeng0811
    版权:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接
    留言:同时 , 如果文中有什么错误,欢迎指出。以免更多的人被误导。
  • 相关阅读:
    事务
    XML小总结
    java中array,arrayList,iterator;
    MariaDB Galera Cluster 部署(如何快速部署 MariaDB 集群)
    RHCE7认证学习笔记17——KickStart安装系统
    CentOS中安装MySQL数据库
    centos下搭建svn服务器端/客户端
    AWS安装CDH5.3-CentOS6.4中关键操作步骤
    AWS安装CDH5.3-CentOS6.4
    [转]Servlet 工作原理解析
  • 原文地址:https://www.cnblogs.com/dupeng0811/p/2671165.html
Copyright © 2011-2022 走看看