seed avec nouvelles images (les images de seed commencent par $)

This commit is contained in:
Victor Turgeon
2022-11-07 19:53:38 -05:00
parent 75ab07a355
commit f7002ebcc5
42 changed files with 2283 additions and 94 deletions

View File

@@ -18,190 +18,190 @@ public class InventoryContext : IdentityDbContext<InventoryUser> {
// Pour partir la BD.
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 1,
Title = $"Ceinture flèchée",
Category = $"Linge",
Description = $"Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
Title = @"Ceinture flèchée",
Category = @"Linge",
Description = @"Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
Status = ProductModel.States.Promotion,
Price = 85.86M,
PromoPrice = 29.99M,
Quantity = 1,
ImageName = $"ceintureflechee"
ImageName = @"$ceintureflechee.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 2,
Title = $"Pantoufles du Canadien en Phentex",
Category = $"Linge",
Description = $"Parce que ça sent la coupe!",
Title = @"Pantoufles du Canadien en Phentex",
Category = @"Linge",
Description = @"Parce que ça sent la coupe!",
Status = ProductModel.States.Available,
Price = 15.64M,
PromoPrice = 9.99M,
Quantity = 54,
ImageName = $"pantouflesCH"
ImageName = @"$pantouflesCH.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 3,
Title = $"Jean-Luc Mongrain",
Category = $"Homme",
Description = $"On ne lui ferait pas mal, en tout cas!!",
Title = @"Jean-Luc Mongrain",
Category = @"Homme",
Description = @"On ne lui ferait pas mal, en tout cas!!",
Status = ProductModel.States.Clearance,
Price = 1453.12M,
PromoPrice = 999.99M,
Quantity = 1,
ImageName = $"jeanlucmongrain"
ImageName = @"$jeanlucmongrain.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 4,
Title = $"T-Shirt",
Category = $"Linge",
Description = $"Tellement simple et comfortable.",
Title = @"T-Shirt",
Category = @"Linge",
Description = @"Tellement simple et comfortable.",
Status = ProductModel.States.Available,
Price = 12.12M,
PromoPrice = 9.99M,
Quantity = 143,
ImageName = $"tshirt"
ImageName = @"$tshirt.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 5,
Title = $"Mitaines",
Category = $"Vêtement d'extérieur",
Description = $"Deux pour un!",
Title = @"Mitaines",
Category = @"Vêtement d'extérieur",
Description = @"Deux pour un!",
Status = ProductModel.States.Available,
Price = 8.18M,
PromoPrice = 6.99M,
Quantity = 1423,
ImageName = $"mitaines"
ImageName = @"$mitaines.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 6,
Title = $"Foulard",
Category = $"Vêtement d'extérieur",
Description = $"Deux pour un!",
Title = @"Foulard",
Category = @"Vêtement d'extérieur",
Description = @"Deux pour un!",
Status = ProductModel.States.Promotion,
Price = 10.56M,
PromoPrice = 8.99M,
Quantity = 14,
ImageName = $"foulard"
ImageName = @"$foulard.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 7,
Title = $"Jock-Strap en phentex",
Category = $"Sous-Vêtement",
Description = $"Pour garder le p'tit bout au chaud.",
Title = @"Jock-Strap en phentex",
Category = @"Sous-Vêtement",
Description = @"Pour garder le p'tit bout au chaud.",
Status = ProductModel.States.Promotion,
Price = 15.45M,
PromoPrice = 12.99M,
Quantity = 144,
ImageName = $"kokin"
ImageName = @"$kokin.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 8,
Title = $"Jock-Strap féminin en phentex",
Category = $"Sous-Vêtement",
Description = $"Pour garder l'absence de p'tit bout au chaud.",
Title = @"Jock-Strap féminin en phentex",
Category = @"Sous-Vêtement",
Description = @"Pour garder l'absence de p'tit bout au chaud.",
Status = ProductModel.States.Promotion,
Price = 15.45M,
PromoPrice = 12.99M,
Quantity = 224,
ImageName = $"kokin"
ImageName = @"$kokinfemme.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 9,
Title = $"Bibi",
Category = $"Alien",
Description = $"En chiffon.",
Title = @"Bibi",
Category = @"Alien",
Description = @"En chiffon.",
Status = ProductModel.States.Clearance,
Price = 1045.45M,
PromoPrice = 1023.99M,
Quantity = 1,
ImageName = $"bibi"
ImageName = @"$bibi.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 10,
Title = $"Tuque en laine",
Category = $"Vêtement d'extérieur",
Description = $"En chiffon.",
Title = @"Tuque en laine",
Category = @"Vêtement d'extérieur",
Description = @"En chiffon.",
Status = ProductModel.States.Available,
Price = 15.45M,
PromoPrice = 12.99M,
Quantity = 1,
ImageName = $"tuque"
ImageName = @"$tuque.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 11,
Title = $"Habit de Bonhomme Carnaval",
Category = $"Vêtement d'extérieur",
Description = $"Pour se faire taper dessus avec une poêle à frire tout en restant au chaud.",
Title = @"Habit de Bonhomme Carnaval",
Category = @"Vêtement d'extérieur",
Description = @"Pour se faire taper dessus avec une poêle à frire tout en restant au chaud.",
Status = ProductModel.States.Promotion,
Price = 145.45M,
PromoPrice = 123.99M,
Quantity = 1,
ImageName = $"bonhomme"
ImageName = @"$bonhomme.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 12,
Title = $"Gauze en phentex",
Category = $"Autre",
Description = $"Pour se pêter la fiole avec style.",
Title = @"Gauze en phentex",
Category = @"Autre",
Description = @"Pour se pêter la fiole avec style.",
Status = ProductModel.States.BackOrder,
Price = 145.45M,
PromoPrice = 123.99M,
Quantity = 0,
ImageName = $"gauze"
ImageName = @"$gauze.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 13,
Title = $"Petit Jésus de plâtre",
Category = $"Homme",
Description = $"En chiffon.",
Title = @"Petit Jésus de plâtre",
Category = @"Homme",
Description = @"En chiffon.",
Status = ProductModel.States.Clearance,
Price = 145.45M,
PromoPrice = 123.99M,
Quantity = 1,
ImageName = $"jesus"
ImageName = @"$jesus.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 14,
Title = $"VHS de la Guerre des Tuques",
Category = $"Autre",
Description = $"À écouter dans l'habit de Bonhomme Carnaval tant que possible.",
Title = @"VHS de la Guerre des Tuques",
Category = @"Autre",
Description = @"À écouter dans l'habit de Bonhomme Carnaval tant que possible.",
Status = ProductModel.States.Clearance,
Price = 3.45M,
PromoPrice = 1.99M,
Quantity = 164363,
ImageName = $"vhs"
ImageName = @"$vhs.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 15,
Title = $"Gilet pare-balle en laine",
Category = $"Linge",
Description = $"(N'est pas réellement pare-balle).",
Title = @"Gilet pare-balle en laine",
Category = @"Linge",
Description = @"(N'est pas réellement pare-balle).",
Status = ProductModel.States.Clearance,
Price = 1435.45M,
PromoPrice = 1223.99M,
Quantity = 18,
ImageName = $"chandailquetaine"
ImageName = @"$chandailquetaine.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 16,
Title = $"Doudou",
Category = $"Autre",
Description = $"Pour s'éffoirer le nez dedans.",
Title = @"Doudou",
Category = @"Autre",
Description = @"Pour s'éffoirer le nez dedans.",
Status = ProductModel.States.Available,
Price = 14.45M,
PromoPrice = 13.99M,
Quantity = 14,
ImageName = $"doudou"
ImageName = @"$doudou.jpg"
});
modelBuilder.Entity<ProductModel>().HasData(new ProductModel {
Id = 17,
Title = $"Mitaines pas de doigts",
Category = $"Vêtements d'extérieur",
Description = $"Pour avoir l'air thug en hiver.",
Title = @"Mitaines pas de doigts",
Category = @"Vêtements d'extérieur",
Description = @"Pour avoir l'air thug en hiver.",
Status = ProductModel.States.Available,
Price = 9.45M,
PromoPrice = 8.99M,
Quantity = 16,
ImageName = $"mitaines2"
ImageName = @"$mitaines2.jpg"
});
// Source: Notre TP Web 4DW.