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.”

  • 相关阅读:
    angular11源码探索十四[表单校验器]
    2020年终总结
    vue使用腾讯地图获取当前位置
    腾讯地图+element-ui 实现地址搜索标记功能
    腾讯地图SDK公交路线规划Demo2
    腾讯地图SDK公交路线规划Demo
    腾讯位置服务地图SDK自定义路况和字体
    腾讯地图SDK自定义地图和路况
    3D地图的定时高亮和点击事件
    vue+腾讯地图 实现坐标拾取器功能
  • 原文地址:https://www.cnblogs.com/tofight/p/15465041.html
Copyright © 2011-2022 走看看