找不到源类型“ AsyncTableQuery <>”的查询模式的实现。找不到“选择”

时间:2020-04-01 09:00:15

标签: c# sqlite

由于使用 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;

有什么主意吗?

谢谢。

0 个答案:

没有答案