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楼的是怎么用的
能具体说清楚点吗?
问题升级了,能给答案的加分!!!!!!!!!!!!!!!!!
相关问答:
电话本匹配查询,希望一条语句搞定
假设号码本(numtable)如下:
号码(num) 联系人 (relationname)
10086 移 ......
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 ......
在 SQL SERVER 中的语句 是:
SELECT
(ROW_NUMBER() OVER (ORDER BY Name) - 1) / 4 + 1 AS TitleRow,
(ROW_NUMBER() OVER (ORDER BY Name) - 1) % 4 + 1 AS Title ......
可以添加数据,但是点添加后会报.access violation at address 0049AB84 in module
源码
procedure Tstudent.add_buttonClick(Sender: TObject);
var
sqlstr:string;
begin
&nb ......