我正在尝试在我的xamarin表单项目中实现sqlite.Net扩展。我从nuget添加了sqlite.net扩展名。现在,我正在尝试与db建立连接,但是我无法做到这一点。我正在尝试像https://bitbucket.org/twincoders/sqlite-net-extensions
我在连接对象中没有获得“ UpdateWithChildren”或“ GetWithChildren”方法。
这是我用来创建连接的代码:
public SQLiteAsyncConnection GetConnection()
{
var sqliteFilename = "SQLiteEx.db3";
string documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // Documents folder
string libraryPath = Path.Combine(documentsPath, "..", "Library");
var path = Path.Combine(libraryPath, sqliteFilename);
if (!File.Exists(path))
{
File.Create(path);
}
var conn = new SQLiteAsyncConnection(path, true);
return conn;
}