首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

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

2012-03-14 
vs2008 smartDevice 引用System.Data.SQLite出错我引用了using System.Data.SQLite命名空间下来就可以直

vs2008 smartDevice 引用System.Data.SQLite出错
我引用了using System.Data.SQLite;命名空间
下来就可以直接使用sqlite的命令了、
  SQLiteConnection sqlConn = new SQLiteConnection(dataSource);
  SQLiteCommand comm = new SQLiteCommand("select * from products", sqlConn);
可是编译时报错
Error1The 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'.
Error2The 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

热点排行