Open .sqlite file with C#

有些话、适合烂在心里 提交于 2019-12-07 11:43:35

问题


Hi i have a file called test.sqlite. How do i go about reading all contents from this file to the console? I already have System.Data.Sqlite

static void Main(string[] args)
        {
           SQLiteConnection _SQL = new SQLiteConnection("Data Source=C:\\test.sqlite");

           _SQL.Open();

           SQLiteCommand cmd = new SQLiteCommand();

        }

回答1:


To use SQLite in your C# application, you need to download a third party free ADO.NET data provider SQLite.NET.0.21_x68_dll.

You can download it from here: Sql Lite Driver for C#

and here is another usefull video tutorial which you must watch: System.Data.Sqlite

Hope this helps.



来源:https://stackoverflow.com/questions/8178195/open-sqlite-file-with-c-sharp

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