The source IQueryable doesn’t implement IDbAsyncEnumerable. Only sources that implement IDbAsyncEnumerable can be used for Entity Framework asynchronous operations. For more details see http://go.microsoft.com/fwlink/?LinkId=287068
这样的问题一般都是 异步使用错误了,
查看引用的有没有 using System.Data.Entity;,把这个删除了,
使用using Microsoft.EntityFrameworkCore; 下的tolistAsync()