How to get System.Data.SQLite Database File Option in DataSource

倖福魔咒の 提交于 2019-12-11 10:35:35

问题


I've followed below tutorials http://geekswithblogs.net/danielggarcia/archive/2013/12/22/portable-databases-ii-using-sqlite-with-entity-framework.aspx

But after installation of System.Data.SQLite using Net-Gu Package manager, no option is available for SQLite Database File in


回答1:


I found myself in the same problem. What it works for me is follow the explanation in this ticket: https://system.data.sqlite.org/index.html/tktview/2be4298631c01be99475

But basically, after deleting the following lines in the App.config it worked:

<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />

<remove invariant="System.Data.SQLite" />




回答2:


You need to install SQLite pre required dll for window from following link: http://www.sqlite.org/download.html




回答3:


Download this file if you use VS 2013:

https://system.data.sqlite.org/downloads/1.0.94.0/sqlite-netFx451-setup-bundle-x86-2013-1.0.94.0.exe

For complete list: https://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki



来源:https://stackoverflow.com/questions/24285676/how-to-get-system-data-sqlite-database-file-option-in-datasource

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!