1. Asynchronous query error:
return dc.table.ToListAsync();
Error: The source IQueryable doesn’t implement IDbAsyncEnumerable<xxx>…..
2. Solve:
It is found that the project references both Entityframework and Microsoft.EntityFrameworkCore, which can be solved by removing the Entityframework package.
F12 enters the ToListAsync method (before removing the Entityframework package)
After removal
It can be seen that different assemblies are used.
Similar Posts:
- [Solved] VS Error: No project was found. Change the current working directory or use the –project option.
- .NET core 2.0 preview uses Mysql to report errors [Solved]
- How to Solve roslyn\csc.exe Error (Two Methods)
- [Solved] Junit4 unit test error: Method ‘initializationError’ not found. Opening the test class.
- Spring @Async interrupt/Unable to acquire JDBC Connection
- This project references NuGet package(s) that are missing on this computer. Enable NuGet Package …
- How to Solve .Net Core Class Library Import System.Windows.Forms Error
- [Solved] Mybatis error: attempted to return null from a method with a primitive return type (int)
- How to Solve “The import javax.servlet cannot be resolved” Error
- [Solved] An error occurred while updating the entries. See the inner exception for details.