Continuage d'API
This commit is contained in:
@@ -29,6 +29,10 @@ namespace GrossesMitainesAPI.Migrations
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<string>("Category")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@@ -39,11 +43,17 @@ namespace GrossesMitainesAPI.Migrations
|
||||
b.Property<decimal>("Price")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<long>("Quantity")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("nvarchar(255)");
|
||||
|
||||
b.Property<bool>("isDiscontinued")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Products");
|
||||
@@ -52,26 +62,35 @@ namespace GrossesMitainesAPI.Migrations
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Category = "Linge",
|
||||
Description = "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.",
|
||||
ImageName = "ceintureflechee",
|
||||
Price = 85.86m,
|
||||
Title = "Ceinture flèchée"
|
||||
Quantity = 1L,
|
||||
Title = "Ceinture flèchée",
|
||||
isDiscontinued = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Category = "Linge",
|
||||
Description = "Parce que ça sent la coupe!",
|
||||
ImageName = "pantouflesCH",
|
||||
Price = 15.64m,
|
||||
Title = "Pantoufles du Canadien en Phentex"
|
||||
Quantity = 54L,
|
||||
Title = "Pantoufles du Canadien en Phentex",
|
||||
isDiscontinued = false
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Category = "Homme",
|
||||
Description = "On ne lui ferait pas mal, en tout cas!!",
|
||||
ImageName = "jeanlucmongrain",
|
||||
Price = 1453.12m,
|
||||
Title = "Jean-Luc Mongrain"
|
||||
Quantity = 1L,
|
||||
Title = "Jean-Luc Mongrain",
|
||||
isDiscontinued = true
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
|
Reference in New Issue
Block a user