C#打开文件的SQLite [英] C# Open SQLite file
本文介绍了C#打开文件的SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在C#中打开的SQLite数据库文件。
i would like to open SQLite DB file in C#.
我有这样的代码从Visual Basic源代码rewrited。
I have this code rewrited from Visual Basic source code.
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString = "Data Source=C:\\web.db;";
myConnection.Open();
但我无法打开C#控制台应用程序的本地计算机上的文件web.db。
but i can't open the file 'web.db' on local computer in C# Console Application.
推荐答案
您将需要的或类似的东西> SQLite的驱动程序。 (有演示如何使用它的网站上的视频。)
You'll need the SQLite driver for .NET or something similar. (There's a video on the site which demonstrates how to use it.)
这篇关于C#打开文件的SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文