<system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite"/>
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
    </DbProviderFactories>
  </system.data>
打開app.config,複製上面一段放在<connectionStrings>上面
 
運行可能會出現“找不到或無法加載已註冊的.net framework data provider
 
只要引用sqlite的dll文件就行了

相关文章:

  • 2021-09-04
  • 2022-12-23
  • 2021-04-07
  • 2022-12-23
  • 2022-02-11
  • 2021-08-19
  • 2021-12-20
猜你喜欢
  • 2021-07-12
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-10-13
相关资源
相似解决方案