private static void SeedProducts(TripAdvisorForEducationDbContext context) { if (context.Product.Any()) { return; } context.Product.AddRange( new Product { UserId = "1", Description = "Feedback tool", Website = "https://drieam.com/", Name = "FeedPulse", Categories = new List <ProductCategory>(), Reviews = new List <Review>() }, new Product { UserId = "1", Description = "Feedback tool", Website = "https://drieam.com/", Name = "StudyCoach", Categories = new List <ProductCategory>(), Reviews = new List <Review>() }); context.SaveChanges(); }
private static void SeedCompanyUsers(TripAdvisorForEducationDbContext context) { if (context.CompanyUser.Any()) { return; } context.CompanyUser.AddRange( new CompanyUser { UserName = "******", Description = "Startup company in Eindhoven", Website = "https://drieam.com/", Id = "1", EmailConfirmed = false, PhoneNumberConfirmed = false, TwoFactorEnabled = false, LockoutEnabled = false, AccessFailedCount = 0 }, new CompanyUser { UserName = "******", Description = "Startup company in Eindhoven", Website = "https://drieam.com/", Id = "2", EmailConfirmed = false, PhoneNumberConfirmed = false, TwoFactorEnabled = false, LockoutEnabled = false, AccessFailedCount = 0 }, new CompanyUser { UserName = "******", Description = "Startup company in Eindhoven", Website = "https://drieam.com/", Id = "3", EmailConfirmed = false, PhoneNumberConfirmed = false, TwoFactorEnabled = false, LockoutEnabled = false, AccessFailedCount = 0 } ); context.SaveChanges(); }
private static void SeedCategories(TripAdvisorForEducationDbContext context) { if (context.Category.Any()) { return; } context.Category.AddRange( new Category { CategoryName = "Assistance" }, new Category { CategoryName = "Feedback tools" }, new Category { CategoryName = "Communication" }, new Category { CategoryName = "Task Management" }, new Category { CategoryName = "Schedule" }, new Category { CategoryName = "Presentation" }, new Category { CategoryName = "Peer Feedback" }, new Category { CategoryName = "Documentation" }, new Category { CategoryName = "Interactive video" }, new Category { CategoryName = "Grading" }, new Category { CategoryName = "Peer Reviews" }, new Category { CategoryName = "Plan Management" }, new Category { CategoryName = "Learning Management System" } ); context.SaveChanges(); }