用 C# 打开 .sqlite 文件 [英] Open .sqlite file with C#

查看:46
本文介绍了用 C# 打开 .sqlite 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为 test.sqlite 的文件.我如何从这个文件中读取所有内容到控制台?我已经有了 System.Data.Sqlite

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

解决方案

要在 C# 应用程序中使用 SQLite,您需要下载第三方免费的 ADO.NET 数据提供程序 SQLite.NET.0.21_x68_dll.

您可以从这里下载:用于 C# 的 Sql Lite 驱动程序

这里是另一个您必须观看的有用视频教程:System.Data.Sqlite

希望这会有所帮助.

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();

        }

解决方案

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.

这篇关于用 C# 打开 .sqlite 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆