One line fixes this:
modelBuilder.Properties<DateTime>().Configure(c => c.HasColumnType("datetime2"));
So, in my code, I added:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Properties<DateTime>().Configure(c => c.HasColumnType("datetime2"));
}
Adding that one line to the DBContext subclass override void OnModelCreating section should work.