我引用了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