zoukankan      html  css  js  c++  java
  • EntityFrame Work:No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

    今天试着学习了Entity Frame Work遇到的问题是

    The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'

    registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded.

    Make sure that the assembly-qualified name is used and that the assembly is available to the running application.  

    配置文件如下:

    解决方法:

    1.右键解决方案,选择Manage NuGet Packages for Solution...

    2.选择项目重新安装EntityFrameWork

    参考网址:http://stackoverflow.com/questions/21641435/error-no-entity-framework-provider-found-for-the-ado-net-provider-with-invarian

     

    如果还有问题:

    Entity Framework The underlying provider failed on Open

     可以试试:http://stackoverflow.com/questions/18271301/entity-framework-the-underlying-provider-failed-on-open

    检测数据库连接字符串是否有问题!

  • 相关阅读:
    asp.net中的Application概述
    Android布局
    Content Provider
    Service
    进程和线程Processes and Threads
    Android模拟器
    Fragment
    Ui Event
    Loader
    sqlite3命令
  • 原文地址:https://www.cnblogs.com/andayhou/p/5744422.html
Copyright © 2011-2022 走看看