当前位置: 代码迷 >> 其他数据库 >> vs2008 smartDevice 引用System.Data.SQLite出错解决思路
  详细解决方案

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

热度:9111   发布时间:2013-02-26 00:00:00.0
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
  相关解决方案