private void SeedCustomers(AlphaTravelDbContext context) { var customers = new[] { new Customer { Firstname = "John", Surname = "Richard", Email = "*****@*****.**", Password = "******", Id = 1, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Recardo", Surname = "Smith", Email = "*****@*****.**", Password = "******", Id = 2, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Mike", Surname = "Kurt", Email = "*****@*****.**", Password = "******", Id = 3, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Sally", Surname = "Smith", Email = "*****@*****.**", Password = "******", Id = 4, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "John", Surname = "Richard", Email = "*****@*****.**", Password = "******", Id = 5, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "John", Surname = "Richard", Email = "*****@*****.**", Password = "******", Id = 6, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Recardo", Surname = "Smith", Email = "*****@*****.**", Password = "******", Id = 7, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Mike", Surname = "Kurt", Email = "*****@*****.**", Password = "******", Id = 8, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Sally", Surname = "Smith", Email = "*****@*****.**", Password = "******", Id = 9, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "John", Surname = "Richard", Email = "*****@*****.**", Password = "******", Id = 10, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "John", Surname = "Richard", Email = "*****@*****.**", Password = "******", Id = 11, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Recardo", Surname = "Smith", Email = "*****@*****.**", Password = "******", Id = 12, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Mike", Surname = "Kurt", Email = "*****@*****.**", Password = "******", Id = 13, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "Sally", Surname = "Smith", Email = "*****@*****.**", Password = "******", Id = 14, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" }, new Customer { Firstname = "John", Surname = "Richard", Email = "*****@*****.**", Password = "******", Id = 15, CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" } }; context.Customers.AddRange(customers); context.SaveChanges(); }
private void SeedDestinations(AlphaTravelDbContext context) { var destinations = new[] { new Destination { Id = 1, Name = "London", Description = "Capital city of UK", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService", DestinationType = new DestinationType { Id = 1, Name = "BoatTours", Description = "Capital city of UK", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" } }, new Destination { Id = 2, Name = "New York", Description = "Fast paced and fun", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService", DestinationType = new DestinationType { Id = 1, Name = "Dining", Description = "Capital city of UK", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" } }, new Destination { Id = 3, Name = "Sydney", Description = "Modren and fun loving city", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService", DestinationType = new DestinationType { Id = 1, Name = "NightTime", Description = "Capital city of UK", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" } }, new Destination { Name = "Dubai", Id = 4, Description = "Shopping and holidays fun city", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService", DestinationType = new DestinationType { Id = 1, Name = "SightsAndLandmarks", Description = "Capital city of UK", CreatedOn = DateTime.UtcNow, CreatedBy = "SeedDataService" } } }; context.Destinations.AddRange(destinations); context.SaveChanges(); }