sqlite在vs2005中的使用报错
在vs2005中引用了using System.Data.SQLite;
定义了一个连数据库连接变量public SQLiteConnection dBConn;
就报下面这个错误了.
The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
谁知道这个错误怎么解决啊
没人给我顶啊。。。。。。。。。。。。。。。。。。。。。。。。。
需要添加一个引用,using System.Data.SQLite; 或者是sqlhelper.dll
using System.Data.Common;
这些我都添加了sqlhelper.dll没有
using System.Data.SQLite和using System.Data.Common;都有
sqlhelper.dll还要添加吗?
那里可以下载?
sqlhelper 我是网上找的类 ,,我也用的sqllite 引用 sqllite.net 之后就没有问题了
那我也试下sqlhelper.dll
sqlhelper.dll只包含了一些基本的数据库执行方法啊
5楼的是怎么用的
能具体说清楚点吗?
问题升级了,能给答案的加分!!!!!!!!!!!!!!!!!
相关问答:
C# code:
System.Data.SQLite.SQLiteConnection conn = new SQLiteConnection(@"acs.db");
try
{
conn.Open();
}
......
C# code:
public static bool UpdateFriendUrl(int id, string cnName, string jpName, string logoUrl, string site, int order)
{
string sql = "update FriendUrl set SiteNameCN=@SiteNameC ......
可以添加数据,但是点添加后会报.access violation at address 0049AB84 in module
源码
procedure Tstudent.add_buttonClick(Sender: TObject);
var
sqlstr:string;
begin
&nb ......
大家好:
最近在wince下使用sqlite,但是由于表的内容量大,所以查询效率很低,不知道什么问题及怎么解决。
我的表的结构如下:
name&nbs ......