public async Task CommitAsync()
        {
            await _publicSchoolContext.SaveChangesAsync();

            if (_usesDatabaseTransaction && _dbContextTransaction != null)
            {
                _dbContextTransaction.Commit();
            }
        }
        private static void InitializeData(PublicSchoolContext context)
        {
            context.AddAsync(new School {
                Id = 1, Name = "School 1"
            });
            context.AddAsync(new School {
                Id = 2, Name = "School 2"
            });
            context.AddAsync(new School {
                Id = 3, Name = "School 3"
            });

            context.AddAsync(new Grade {
                Id = 1, Description = "Grade A", SchoolId = 1
            });
            context.AddAsync(new Grade {
                Id = 1, Description = "Grade A", SchoolId = 1
            });
            context.AddAsync(new Grade {
                Id = 1, Description = "Grade A", SchoolId = 1
            });

            context.SaveChangesAsync();
        }