嘿,目前我不知道官方如何支持它,但是,有人報告成功使用vici coolStorage與monodroid。 我已經能夠將程序集放到我的項目中並進行編譯,但是當我嘗試使用它們時,某些類會拋出編譯時錯誤。特別是在嘗試連接時,例如website.上的monoTouch示例。 使用Vici酷存儲與monodroid
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錯誤的無效號碼。
祝賀並再次感謝。我沒有意識到你是那個傑克大聲笑 – Terrance