public void SeedCountries(NetatmoDbContext context) { var countries = GetAllCountries().GetAwaiter().GetResult(); context.Countries.AddRange(countries); context.SaveChanges(); }
public void SeedUsers(NetatmoDbContext context) { var users = new[] { new User { Id = 1, Uid = "auth0|5c3369d9b171c101904570ca", AccessToken = "56102b6fc6aa42f174e5d484|a2a52b7b24acfacf1718f69bbf226620", ExpiresAt = DateTimeOffset.FromUnixTimeMilliseconds(1550239201963).Date, RefreshToken = "56102b6fc6aa42f174e5d484|73d5b91c1cb4b021fddf91634be0a598" } }; context.Users.AddRange(users); context.SaveChanges(); }