我正在尝试使用 Zumero Xamarin 组件,但出现编译器错误。
The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced.
我将该组件包含到我的项目中并添加了以下代码。
using System.Data.SQLite;
和
string personalFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
string dbName = "pitches.db";
string dbPath = Path.Combine ( personalFolder, dbName);
var conn = new SQLiteConnection ("Data Source=" + dbPath);
conn.Open ();
conn.ZumeroRegister();