嘿,目前我不确定它是如何得到官方支持的,但是有报道称人们成功地将 monodroid 与 vici coolStorage 一起使用。我已经能够将程序集放入我的项目并进行编译,但是,某些类在我尝试使用它们时会引发编译时错误。特别是在尝试像网站上的 monoTouch 示例那样连接时。.
string dbName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "mydb.db3");
// The following line will tell CoolStorage where the database is,
// create it if it does not exist, and call a delegate which
// creates the necessary tables (only if the database file was
// created new)
CSConfig.SetDB(dbName, true, () => {
CSDatabase.ExecuteNonQuery(@"CREATE TABLE person
(PersonID INTEGER PRIMARY KEY AUTOINCREMENT,
Name TEXT(50) NOT NULL,
DateOfBirth TEXT(30) NULL)");
});
尝试使用 CSConfig 的方法时没有智能感知,当我尝试将 3 个 args 传递给 CSConfig.SetDB() 时,我收到无效数量的 args 错误。