由于使用 SQLiteAsyncConnection 而不是 SQLiteConnection ,因此出现以下错误:
Could not find an implementation of the query pattern for source type 'AsyncTableQuery<User>'. 'Select' not found.
这是我的实现:
public IEnumerable<User> GetUsers()
{
return (from user in database.Table<User>() select user).ToList();
}
命名空间:
using SQLite;
using System.Linq;
有什么主意吗?
谢谢。