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
    版权:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接
    留言:同时 , 如果文中有什么错误,欢迎指出。以免更多的人被误导。
  • 相关阅读:
    SparkSQL UDF使用方法与原理详解
    Hadoop 之日志管理—应用在 YARN 中运行时的日志
    圣诞节雪花效果,pc端
    转 redis使用场景 简介
    转 springboot 教程
    springboot freeMarker
    springboot web 服务器选择
    springboot 异步任务
    springboot 整合 rabbitmq
    软件开发生命周期过程中,必须考虑的安全问题
  • 原文地址:https://www.cnblogs.com/dupeng0811/p/2671165.html
Copyright © 2011-2022 走看看