diff --git a/GrossesMitaines/GrossesMitainesAPI/Data/InventoryContext.cs b/GrossesMitaines/GrossesMitainesAPI/Data/InventoryContext.cs index 8569dac..134addc 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Data/InventoryContext.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Data/InventoryContext.cs @@ -44,6 +44,160 @@ public class InventoryContext : DbContext { Quantity = 1, ImageName = $"jeanlucmongrain" }); + modelBuilder.Entity().HasData(new Product { + Id = 4, + Title = $"T-Shirt", + Category = $"Linge", + Description = $"Tellement simple et comfortable.", + Status = Product.States.Available, + Price = 12.12M, + PromoPrice = 9.99M, + Quantity = 143, + ImageName = $"tshirt" + }); + modelBuilder.Entity().HasData(new Product { + Id = 5, + Title = $"Mitaines", + Category = $"Vêtement d'extérieur", + Description = $"Deux pour un!", + Status = Product.States.Available, + Price = 8.18M, + PromoPrice = 6.99M, + Quantity = 1423, + ImageName = $"mitaines" + }); + modelBuilder.Entity().HasData(new Product { + Id = 6, + Title = $"Foulard", + Category = $"Vêtement d'extérieur", + Description = $"Deux pour un!", + Status = Product.States.Promotion, + Price = 10.56M, + PromoPrice = 8.99M, + Quantity = 14, + ImageName = $"foulard" + }); + modelBuilder.Entity().HasData(new Product { + Id = 7, + Title = $"Jock-Strap en phentex", + Category = $"Sous-Vêtement", + Description = $"Pour garder le p'tit bout au chaud.", + Status = Product.States.Promotion, + Price = 15.45M, + PromoPrice = 12.99M, + Quantity = 144, + ImageName = $"kokin" + }); + modelBuilder.Entity().HasData(new Product { + Id = 8, + Title = $"Jock-Strap féminin en phentex", + Category = $"Sous-Vêtement", + Description = $"Pour garder l'absence de p'tit bout au chaud.", + Status = Product.States.Promotion, + Price = 15.45M, + PromoPrice = 12.99M, + Quantity = 224, + ImageName = $"kokin" + }); + modelBuilder.Entity().HasData(new Product { + Id = 9, + Title = $"Bibi", + Category = $"Alien", + Description = $"En chiffon.", + Status = Product.States.Clearance, + Price = 1045.45M, + PromoPrice = 1023.99M, + Quantity = 1, + ImageName = $"bibi" + }); + modelBuilder.Entity().HasData(new Product { + Id = 10, + Title = $"Tuque en laine", + Category = $"Vêtement d'extérieur", + Description = $"En chiffon.", + Status = Product.States.Available, + Price = 15.45M, + PromoPrice = 12.99M, + Quantity = 1, + ImageName = $"tuque" + }); + modelBuilder.Entity().HasData(new Product { + 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.", + Status = Product.States.Promotion, + Price = 145.45M, + PromoPrice = 123.99M, + Quantity = 1, + ImageName = $"bonhomme" + }); + modelBuilder.Entity().HasData(new Product { + Id = 12, + Title = $"Gauze en phentex", + Category = $"Autre", + Description = $"Pour se pêter la fiole avec style.", + Status = Product.States.BackOrder, + Price = 145.45M, + PromoPrice = 123.99M, + Quantity = 0, + ImageName = $"gauze" + }); + modelBuilder.Entity().HasData(new Product { + Id = 13, + Title = $"Petit Jésus de plâtre", + Category = $"Homme", + Description = $"En chiffon.", + Status = Product.States.Clearance, + Price = 145.45M, + PromoPrice = 123.99M, + Quantity = 1, + ImageName = $"jesus" + }); + modelBuilder.Entity().HasData(new Product { + Id = 14, + Title = $"VHS de la Guerre des Tuques", + Category = $"Autre", + Description = $"À écouter dans l'habit de Bonhomme Carnaval tant que possible.", + Status = Product.States.Clearance, + Price = 3.45M, + PromoPrice = 1.99M, + Quantity = 164363, + ImageName = $"vhs" + }); + modelBuilder.Entity().HasData(new Product { + Id = 15, + Title = $"Gilet pare-balle en laine", + Category = $"Linge", + Description = $"(N'est pas réellement pare-balle).", + Status = Product.States.Clearance, + Price = 1435.45M, + PromoPrice = 1223.99M, + Quantity = 18, + ImageName = $"chandailquetaine" + }); + modelBuilder.Entity().HasData(new Product { + Id = 16, + Title = $"Doudou", + Category = $"Autre", + Description = $"Pour s'éffoirer le nez dedans.", + Status = Product.States.Available, + Price = 14.45M, + PromoPrice = 13.99M, + Quantity = 14, + ImageName = $"doudou" + }); + modelBuilder.Entity().HasData(new Product { + Id = 17, + Title = $"Mitaines pas de doigts", + Category = $"Vêtements d'extérieur", + Description = $"Pour avoir l'air thug en hiver.", + Status = Product.States.Available, + Price = 9.45M, + PromoPrice = 8.99M, + Quantity = 16, + ImageName = $"mitaines2" + }); } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { var configuration = new ConfigurationBuilder() diff --git a/GrossesMitaines/GrossesMitainesAPI/Migrations/20221017003248_Initial-Db.Designer.cs b/GrossesMitaines/GrossesMitainesAPI/Migrations/20221017003248_Initial-Db.Designer.cs deleted file mode 100644 index 387e0f0..0000000 --- a/GrossesMitaines/GrossesMitainesAPI/Migrations/20221017003248_Initial-Db.Designer.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -using GrossesMitainesAPI.Data; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -#nullable disable - -namespace GrossesMitainesAPI.Migrations -{ - [DbContext(typeof(InventoryContext))] - [Migration("20221017003248_Initial-Db")] - partial class InitialDb - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "6.0.9") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("GrossesMitainesAPI.Models.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); - - b.Property("Category") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ImageName") - .HasColumnType("nvarchar(max)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("PromoPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.HasKey("Id"); - - b.ToTable("Products"); - - b.HasData( - new - { - Id = 1, - Category = "Linge", - Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", - ImageName = "ceintureflechee", - Price = 85.86m, - PromoPrice = 0m, - Quantity = 1L, - Status = 4, - Title = "Ceinture flèchée" - }, - new - { - Id = 2, - Category = "Linge", - Description = "Parce que ça sent la coupe!", - ImageName = "pantouflesCH", - Price = 15.64m, - PromoPrice = 0m, - Quantity = 54L, - Status = 0, - Title = "Pantoufles du Canadien en Phentex" - }, - new - { - Id = 3, - Category = "Homme", - Description = "On ne lui ferait pas mal, en tout cas!!", - ImageName = "jeanlucmongrain", - Price = 1453.12m, - PromoPrice = 0m, - Quantity = 1L, - Status = 3, - Title = "Jean-Luc Mongrain" - }); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/GrossesMitaines/GrossesMitainesAPI/Migrations/20221017003248_Initial-Db.cs b/GrossesMitaines/GrossesMitainesAPI/Migrations/20221017003248_Initial-Db.cs deleted file mode 100644 index 682ab01..0000000 --- a/GrossesMitaines/GrossesMitainesAPI/Migrations/20221017003248_Initial-Db.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace GrossesMitainesAPI.Migrations -{ - public partial class InitialDb : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Products", - columns: table => new - { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Title = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: false), - Category = table.Column(type: "nvarchar(max)", nullable: false), - Description = table.Column(type: "nvarchar(max)", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - PromoPrice = table.Column(type: "decimal(18,2)", nullable: false), - Quantity = table.Column(type: "bigint", nullable: false), - Status = table.Column(type: "int", nullable: false), - ImageName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Products", x => x.Id); - }); - - migrationBuilder.InsertData( - table: "Products", - columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" }, - values: new object[] { 1, "Linge", "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", "ceintureflechee", 85.86m, 0m, 1L, 4, "Ceinture flèchée" }); - - migrationBuilder.InsertData( - table: "Products", - columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" }, - values: new object[] { 2, "Linge", "Parce que ça sent la coupe!", "pantouflesCH", 15.64m, 0m, 54L, 0, "Pantoufles du Canadien en Phentex" }); - - migrationBuilder.InsertData( - table: "Products", - columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" }, - values: new object[] { 3, "Homme", "On ne lui ferait pas mal, en tout cas!!", "jeanlucmongrain", 1453.12m, 0m, 1L, 3, "Jean-Luc Mongrain" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Products"); - } - } -} diff --git a/GrossesMitaines/GrossesMitainesAPI/Migrations/20221025170101_Initial-Db.Designer.cs b/GrossesMitaines/GrossesMitainesAPI/Migrations/20221025170101_Initial-Db.Designer.cs new file mode 100644 index 0000000..592204a --- /dev/null +++ b/GrossesMitaines/GrossesMitainesAPI/Migrations/20221025170101_Initial-Db.Designer.cs @@ -0,0 +1,275 @@ +// +using GrossesMitainesAPI.Data; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace GrossesMitainesAPI.Migrations +{ + [DbContext(typeof(InventoryContext))] + [Migration("20221025170101_Initial-Db")] + partial class InitialDb + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "6.0.10") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); + + modelBuilder.Entity("GrossesMitainesAPI.Models.Product", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1); + + b.Property("Category") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Description") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ImageName") + .HasColumnType("nvarchar(max)"); + + b.Property("Price") + .HasColumnType("decimal(18,2)"); + + b.Property("PromoPrice") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity") + .HasColumnType("bigint"); + + b.Property("Status") + .HasColumnType("int"); + + b.Property("Title") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("nvarchar(255)"); + + b.HasKey("Id"); + + b.ToTable("Products"); + + b.HasData( + new + { + Id = 1, + Category = "Linge", + Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", + ImageName = "ceintureflechee", + Price = 85.86m, + PromoPrice = 29.99m, + Quantity = 1L, + Status = 4, + Title = "Ceinture flèchée" + }, + new + { + Id = 2, + Category = "Linge", + Description = "Parce que ça sent la coupe!", + ImageName = "pantouflesCH", + Price = 15.64m, + PromoPrice = 9.99m, + Quantity = 54L, + Status = 0, + Title = "Pantoufles du Canadien en Phentex" + }, + new + { + Id = 3, + Category = "Homme", + Description = "On ne lui ferait pas mal, en tout cas!!", + ImageName = "jeanlucmongrain", + Price = 1453.12m, + PromoPrice = 999.99m, + Quantity = 1L, + Status = 3, + Title = "Jean-Luc Mongrain" + }, + new + { + Id = 4, + Category = "Linge", + Description = "Tellement simple et comfortable.", + ImageName = "tshirt", + Price = 12.12m, + PromoPrice = 9.99m, + Quantity = 143L, + Status = 0, + Title = "T-Shirt" + }, + new + { + Id = 5, + Category = "Vêtement d'extérieur", + Description = "Deux pour un!", + ImageName = "mitaines", + Price = 8.18m, + PromoPrice = 6.99m, + Quantity = 1423L, + Status = 0, + Title = "Mitaines" + }, + new + { + Id = 6, + Category = "Vêtement d'extérieur", + Description = "Deux pour un!", + ImageName = "foulard", + Price = 10.56m, + PromoPrice = 8.99m, + Quantity = 14L, + Status = 4, + Title = "Foulard" + }, + new + { + Id = 7, + Category = "Sous-Vêtement", + Description = "Pour garder le p'tit bout au chaud.", + ImageName = "kokin", + Price = 15.45m, + PromoPrice = 12.99m, + Quantity = 144L, + Status = 4, + Title = "Jock-Strap en phentex" + }, + new + { + Id = 8, + Category = "Sous-Vêtement", + Description = "Pour garder l'absence de p'tit bout au chaud.", + ImageName = "kokin", + Price = 15.45m, + PromoPrice = 12.99m, + Quantity = 224L, + Status = 4, + Title = "Jock-Strap féminin en phentex" + }, + new + { + Id = 9, + Category = "Alien", + Description = "En chiffon.", + ImageName = "bibi", + Price = 1045.45m, + PromoPrice = 1023.99m, + Quantity = 1L, + Status = 3, + Title = "Bibi" + }, + new + { + Id = 10, + Category = "Vêtement d'extérieur", + Description = "En chiffon.", + ImageName = "tuque", + Price = 15.45m, + PromoPrice = 12.99m, + Quantity = 1L, + Status = 0, + Title = "Tuque en laine" + }, + new + { + Id = 11, + Category = "Vêtement d'extérieur", + Description = "Pour se faire taper dessus avec une poêle à frire tout en restant au chaud.", + ImageName = "bonhomme", + Price = 145.45m, + PromoPrice = 123.99m, + Quantity = 1L, + Status = 4, + Title = "Habit de Bonhomme Carnaval" + }, + new + { + Id = 12, + Category = "Autre", + Description = "Pour se pêter la fiole avec style.", + ImageName = "gauze", + Price = 145.45m, + PromoPrice = 123.99m, + Quantity = 0L, + Status = 1, + Title = "Gauze en phentex" + }, + new + { + Id = 13, + Category = "Homme", + Description = "En chiffon.", + ImageName = "jesus", + Price = 145.45m, + PromoPrice = 123.99m, + Quantity = 1L, + Status = 3, + Title = "Petit Jésus de plâtre" + }, + new + { + Id = 14, + Category = "Autre", + Description = "À écouter dans l'habit de Bonhomme Carnaval tant que possible.", + ImageName = "vhs", + Price = 3.45m, + PromoPrice = 1.99m, + Quantity = 164363L, + Status = 3, + Title = "VHS de la Guerre des Tuques" + }, + new + { + Id = 15, + Category = "Linge", + Description = "(N'est pas réellement pare-balle).", + ImageName = "chandailquetaine", + Price = 1435.45m, + PromoPrice = 1223.99m, + Quantity = 18L, + Status = 3, + Title = "Gilet pare-balle en laine" + }, + new + { + Id = 16, + Category = "Autre", + Description = "Pour s'éffoirer le nez dedans.", + ImageName = "doudou", + Price = 14.45m, + PromoPrice = 13.99m, + Quantity = 14L, + Status = 0, + Title = "Doudou" + }, + new + { + Id = 17, + Category = "Vêtements d'extérieur", + Description = "Pour avoir l'air thug en hiver.", + ImageName = "mitaines2", + Price = 9.45m, + PromoPrice = 8.99m, + Quantity = 16L, + Status = 0, + Title = "Mitaines pas de doigts" + }); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/GrossesMitaines/GrossesMitainesAPI/Migrations/20221025170101_Initial-Db.cs b/GrossesMitaines/GrossesMitainesAPI/Migrations/20221025170101_Initial-Db.cs new file mode 100644 index 0000000..21692ba --- /dev/null +++ b/GrossesMitaines/GrossesMitainesAPI/Migrations/20221025170101_Initial-Db.cs @@ -0,0 +1,62 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace GrossesMitainesAPI.Migrations +{ + public partial class InitialDb : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Products", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Title = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: false), + Category = table.Column(type: "nvarchar(max)", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: false), + Price = table.Column(type: "decimal(18,2)", nullable: false), + PromoPrice = table.Column(type: "decimal(18,2)", nullable: false), + Quantity = table.Column(type: "bigint", nullable: false), + Status = table.Column(type: "int", nullable: false), + ImageName = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Products", x => x.Id); + }); + + migrationBuilder.InsertData( + table: "Products", + columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "PromoPrice", "Quantity", "Status", "Title" }, + values: new object[,] + { + { 1, "Linge", "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", "ceintureflechee", 85.86m, 29.99m, 1L, 4, "Ceinture flèchée" }, + { 2, "Linge", "Parce que ça sent la coupe!", "pantouflesCH", 15.64m, 9.99m, 54L, 0, "Pantoufles du Canadien en Phentex" }, + { 3, "Homme", "On ne lui ferait pas mal, en tout cas!!", "jeanlucmongrain", 1453.12m, 999.99m, 1L, 3, "Jean-Luc Mongrain" }, + { 4, "Linge", "Tellement simple et comfortable.", "tshirt", 12.12m, 9.99m, 143L, 0, "T-Shirt" }, + { 5, "Vêtement d'extérieur", "Deux pour un!", "mitaines", 8.18m, 6.99m, 1423L, 0, "Mitaines" }, + { 6, "Vêtement d'extérieur", "Deux pour un!", "foulard", 10.56m, 8.99m, 14L, 4, "Foulard" }, + { 7, "Sous-Vêtement", "Pour garder le p'tit bout au chaud.", "kokin", 15.45m, 12.99m, 144L, 4, "Jock-Strap en phentex" }, + { 8, "Sous-Vêtement", "Pour garder l'absence de p'tit bout au chaud.", "kokin", 15.45m, 12.99m, 224L, 4, "Jock-Strap féminin en phentex" }, + { 9, "Alien", "En chiffon.", "bibi", 1045.45m, 1023.99m, 1L, 3, "Bibi" }, + { 10, "Vêtement d'extérieur", "En chiffon.", "tuque", 15.45m, 12.99m, 1L, 0, "Tuque en laine" }, + { 11, "Vêtement d'extérieur", "Pour se faire taper dessus avec une poêle à frire tout en restant au chaud.", "bonhomme", 145.45m, 123.99m, 1L, 4, "Habit de Bonhomme Carnaval" }, + { 12, "Autre", "Pour se pêter la fiole avec style.", "gauze", 145.45m, 123.99m, 0L, 1, "Gauze en phentex" }, + { 13, "Homme", "En chiffon.", "jesus", 145.45m, 123.99m, 1L, 3, "Petit Jésus de plâtre" }, + { 14, "Autre", "À écouter dans l'habit de Bonhomme Carnaval tant que possible.", "vhs", 3.45m, 1.99m, 164363L, 3, "VHS de la Guerre des Tuques" }, + { 15, "Linge", "(N'est pas réellement pare-balle).", "chandailquetaine", 1435.45m, 1223.99m, 18L, 3, "Gilet pare-balle en laine" }, + { 16, "Autre", "Pour s'éffoirer le nez dedans.", "doudou", 14.45m, 13.99m, 14L, 0, "Doudou" }, + { 17, "Vêtements d'extérieur", "Pour avoir l'air thug en hiver.", "mitaines2", 9.45m, 8.99m, 16L, 0, "Mitaines pas de doigts" } + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Products"); + } + } +} diff --git a/GrossesMitaines/GrossesMitainesAPI/Migrations/InventoryContextModelSnapshot.cs b/GrossesMitaines/GrossesMitainesAPI/Migrations/InventoryContextModelSnapshot.cs index 1d1e47d..23c3885 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Migrations/InventoryContextModelSnapshot.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Migrations/InventoryContextModelSnapshot.cs @@ -16,7 +16,7 @@ namespace GrossesMitainesAPI.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "6.0.9") + .HasAnnotation("ProductVersion", "6.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); @@ -69,7 +69,7 @@ namespace GrossesMitainesAPI.Migrations Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", ImageName = "ceintureflechee", Price = 85.86m, - PromoPrice = 0m, + PromoPrice = 29.99m, Quantity = 1L, Status = 4, Title = "Ceinture flèchée" @@ -81,7 +81,7 @@ namespace GrossesMitainesAPI.Migrations Description = "Parce que ça sent la coupe!", ImageName = "pantouflesCH", Price = 15.64m, - PromoPrice = 0m, + PromoPrice = 9.99m, Quantity = 54L, Status = 0, Title = "Pantoufles du Canadien en Phentex" @@ -93,10 +93,178 @@ namespace GrossesMitainesAPI.Migrations Description = "On ne lui ferait pas mal, en tout cas!!", ImageName = "jeanlucmongrain", Price = 1453.12m, - PromoPrice = 0m, + PromoPrice = 999.99m, Quantity = 1L, Status = 3, Title = "Jean-Luc Mongrain" + }, + new + { + Id = 4, + Category = "Linge", + Description = "Tellement simple et comfortable.", + ImageName = "tshirt", + Price = 12.12m, + PromoPrice = 9.99m, + Quantity = 143L, + Status = 0, + Title = "T-Shirt" + }, + new + { + Id = 5, + Category = "Vêtement d'extérieur", + Description = "Deux pour un!", + ImageName = "mitaines", + Price = 8.18m, + PromoPrice = 6.99m, + Quantity = 1423L, + Status = 0, + Title = "Mitaines" + }, + new + { + Id = 6, + Category = "Vêtement d'extérieur", + Description = "Deux pour un!", + ImageName = "foulard", + Price = 10.56m, + PromoPrice = 8.99m, + Quantity = 14L, + Status = 4, + Title = "Foulard" + }, + new + { + Id = 7, + Category = "Sous-Vêtement", + Description = "Pour garder le p'tit bout au chaud.", + ImageName = "kokin", + Price = 15.45m, + PromoPrice = 12.99m, + Quantity = 144L, + Status = 4, + Title = "Jock-Strap en phentex" + }, + new + { + Id = 8, + Category = "Sous-Vêtement", + Description = "Pour garder l'absence de p'tit bout au chaud.", + ImageName = "kokin", + Price = 15.45m, + PromoPrice = 12.99m, + Quantity = 224L, + Status = 4, + Title = "Jock-Strap féminin en phentex" + }, + new + { + Id = 9, + Category = "Alien", + Description = "En chiffon.", + ImageName = "bibi", + Price = 1045.45m, + PromoPrice = 1023.99m, + Quantity = 1L, + Status = 3, + Title = "Bibi" + }, + new + { + Id = 10, + Category = "Vêtement d'extérieur", + Description = "En chiffon.", + ImageName = "tuque", + Price = 15.45m, + PromoPrice = 12.99m, + Quantity = 1L, + Status = 0, + Title = "Tuque en laine" + }, + new + { + Id = 11, + Category = "Vêtement d'extérieur", + Description = "Pour se faire taper dessus avec une poêle à frire tout en restant au chaud.", + ImageName = "bonhomme", + Price = 145.45m, + PromoPrice = 123.99m, + Quantity = 1L, + Status = 4, + Title = "Habit de Bonhomme Carnaval" + }, + new + { + Id = 12, + Category = "Autre", + Description = "Pour se pêter la fiole avec style.", + ImageName = "gauze", + Price = 145.45m, + PromoPrice = 123.99m, + Quantity = 0L, + Status = 1, + Title = "Gauze en phentex" + }, + new + { + Id = 13, + Category = "Homme", + Description = "En chiffon.", + ImageName = "jesus", + Price = 145.45m, + PromoPrice = 123.99m, + Quantity = 1L, + Status = 3, + Title = "Petit Jésus de plâtre" + }, + new + { + Id = 14, + Category = "Autre", + Description = "À écouter dans l'habit de Bonhomme Carnaval tant que possible.", + ImageName = "vhs", + Price = 3.45m, + PromoPrice = 1.99m, + Quantity = 164363L, + Status = 3, + Title = "VHS de la Guerre des Tuques" + }, + new + { + Id = 15, + Category = "Linge", + Description = "(N'est pas réellement pare-balle).", + ImageName = "chandailquetaine", + Price = 1435.45m, + PromoPrice = 1223.99m, + Quantity = 18L, + Status = 3, + Title = "Gilet pare-balle en laine" + }, + new + { + Id = 16, + Category = "Autre", + Description = "Pour s'éffoirer le nez dedans.", + ImageName = "doudou", + Price = 14.45m, + PromoPrice = 13.99m, + Quantity = 14L, + Status = 0, + Title = "Doudou" + }, + new + { + Id = 17, + Category = "Vêtements d'extérieur", + Description = "Pour avoir l'air thug en hiver.", + ImageName = "mitaines2", + Price = 9.45m, + PromoPrice = 8.99m, + Quantity = 16L, + Status = 0, + Title = "Mitaines pas de doigts" }); }); #pragma warning restore 612, 618 diff --git a/GrossesMitaines/GrossesMitainesAPI/appsettings.json b/GrossesMitaines/GrossesMitainesAPI/appsettings.json index 1d25e03..5ad466e 100644 --- a/GrossesMitaines/GrossesMitainesAPI/appsettings.json +++ b/GrossesMitaines/GrossesMitainesAPI/appsettings.json @@ -7,6 +7,6 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "DefaultConnection": "Server=(localdb)\\mssqllocaldb; Database=GrossesMitainesDB1; Trusted_Connection=True; MultipleActiveResultSets=true" + "DefaultConnection": "Server=(localdb)\\mssqllocaldb; Database=GrossesMitainesDB2; Trusted_Connection=True; MultipleActiveResultSets=true" } } diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/bibi.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/bibi.jpg new file mode 100644 index 0000000..2a82e19 Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/bibi.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/bonhomme.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/bonhomme.jpg new file mode 100644 index 0000000..c7291c6 Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/bonhomme.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/foulard.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/foulard.jpg new file mode 100644 index 0000000..a4fa2a0 Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/foulard.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/gauze.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/gauze.jpg new file mode 100644 index 0000000..665c2e5 Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/gauze.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/jesus.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/jesus.jpg new file mode 100644 index 0000000..ec7bdcb Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/jesus.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/mitaines2.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/mitaines2.jpg new file mode 100644 index 0000000..65b3a18 Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/mitaines2.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/tshirt.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/tshirt.jpg new file mode 100644 index 0000000..267914a Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/tshirt.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/tuque.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/tuque.jpg new file mode 100644 index 0000000..dec0f3b Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/tuque.jpg differ diff --git a/GrossesMitaines/grosses-mitaines-ui/public/images/vhs.jpg b/GrossesMitaines/grosses-mitaines-ui/public/images/vhs.jpg new file mode 100644 index 0000000..6def063 Binary files /dev/null and b/GrossesMitaines/grosses-mitaines-ui/public/images/vhs.jpg differ