The source IQueryable doesn't implement IDbAsyncEnumerable. Only sources that implement IDbAsyncEnumerable can be used for Entity Framework asynchronous operations
第一次使用 ef 指令時會自動添加 using 但那個是 for 非 core,需要改為 core 版本
using System.Data.Entity; // 非 core
using System.Data.Entity; // 非 core
↓
using Microsoft.EntityFrameworkCore; // core
using Microsoft.EntityFrameworkCore; // core
留言