**CreateDbContext** method uses **Activator.CreateInstance** to create the DbContext, which requires an empty constructor and overriding **OnConfiguring** method.  It will be much better to use DbContextOptions when creating the DbContext.
CreateDbContext method uses Activator.CreateInstance to create the DbContext, which requires an empty constructor and overriding OnConfiguring method.
It will be much better to use DbContextOptions when creating the DbContext.