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
    版权:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接
    留言:同时 , 如果文中有什么错误,欢迎指出。以免更多的人被误导。
  • 相关阅读:
    快速排序算法
    HTTP中的重定向和请求转发的区别
    单链表的逆置(头插法和就地逆置)
    水仙花数学习
    构建n位元的格雷码
    算法学习day01 栈和队列
    数据结构学习总结 线性表之双向链表
    设计模式
    Nginx 初步认识
    数据结构学习总结(2) 线性表之单链表
  • 原文地址:https://www.cnblogs.com/dupeng0811/p/2671165.html
Copyright © 2011-2022 走看看