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