I just tested upgrading a project from .NET Core 3.1 to .NET 5. But I encountered the following error when the DbContext is used:
System.InvalidOperationExce