专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 其他数据库

vs2008 smartDevice 引用System.Data.SQLite出错解决思路

发布时间:2010-05-24 21:29:40 文章来源:www.iduyao.cn 采编人员:星星草
vs2008 smartDevice 引用System.Data.SQLite出错
我引用了using System.Data.SQLite;命名空间
下来就可以直接使用sqlite的命令了、
  SQLiteConnection sqlConn = new SQLiteConnection(dataSource);
  SQLiteCommand comm = new SQLiteCommand("select * from products", sqlConn);
可是编译时报错
Error 1 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'.
Error 2 The type 'System.Data.Common.DbCommand' 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'.

请问这是怎么回事?


------解决方案--------------------
得引用compact framework 2.0
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: