To solve this issue, please change the statement to register ReportConnectionContext service in ConfigureServices to:
services.AddDbContext<ReportConnectionContext >(options => options.UseSqlServer(DbCoreConnectionString));
This need Microsoft.EntityFrameworkCore.SqlServer dll , you can download in NuGet Packages.
And please make sure your ReportConnectionContext class is constructed as follows:
public class ReportConnectionContext: DbContext
{
public ReportConnectionContext(DbContextOptions<ReportConnectionContext> options)
: base(options)
{
}
}
You can also refer to this discussion for more details: https://github.com/dotnet/efcore/issues/4825