zoukankan      html  css  js  c++  java
  • 【sqlite】2.Nuget下载好Sqlite.EF6后出现运行报错处理办法

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </configSections>
        <entityFramework>
            <providers>
                <provider invariantName="System.Data.SQLite" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
                <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
                <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
            </providers>
        </entityFramework>
        <system.data>
            <DbProviderFactories>
                <remove invariant="System.Data.SQLite.EF6" />
                <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
                <remove invariant="System.Data.SQLite" />
                <add name='SQLiteData Provider' invariant='System.Data.SQLite' description='.Net Framework DataProvider for SQLite' type='System.Data.SQLite.SQLiteFactory,System.Data.SQLite'/>
            </DbProviderFactories>
        </system.data>
        <connectionStrings>
            <add name="mainEntities2" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SQLite.EF6;provider connection string=&quot;data source=E:工作WpfApp2SqliteEfTestDataBase.db&quot;" providerName="System.Data.EntityClient" />
        </connectionStrings>
    </configuration>
    <add name='SQLiteData Provider' invariant='System.Data.SQLite' description='.Net Framework DataProvider for SQLite' type='System.Data.SQLite.SQLiteFactory,System.Data.SQLite'/>

    System.NotSupportedException:“Unable to determine the provider name for provider factory of type 'System.Data.SQLite.SQLiteFactory'. Make sure that the ADO.NET provider is installed or registered in the application config.”

  • 相关阅读:
    几种简单的素数判定法(转)
    在Ubuntu下编译WebKit源码
    Struts2+JSON特别让人恶心的一个问题
    强大的asp.net 绑定组件
    关于单点登陆的示例代码
    NHibernate 如何高效的数据翻页?
    FLEX学习网站大全
    pku1207
    windows7试用过程常见问题解答
    什么是HTTPS?
  • 原文地址:https://www.cnblogs.com/tofight/p/15465041.html
Copyright © 2011-2022 走看看