ProductType seed data

PHOTO EMBED

Thu Sep 19 2024 13:40:09 GMT+0000 (Coordinated Universal Time)

Saved by @iamkatmakhafola

var ProductTypes = new Product_Type[]
{
  // Types for "Tops" (Category_ID = 1)
  new Product_Type { Type_ID = 1, Type_Name = "Shirts", Category_ID = 1 },  // T-shirts, long sleeves, crop tops
    new Product_Type { Type_ID = 2, Type_Name = "Tank Tops", Category_ID = 1 }, // All tank tops
      new Product_Type { Type_ID = 3, Type_Name = "Hoodies", Category_ID = 1 },   // Sleeveless and regular hoodies
        new Product_Type { Type_ID = 4, Type_Name = "Sweats", Category_ID = 1 },    // Sweatshirts and similar

          // Types for "Bottoms" (Category_ID = 2)
          new Product_Type { Type_ID = 5, Type_Name = "Shorts", Category_ID = 2 },    // All types of shorts
            new Product_Type { Type_ID = 6, Type_Name = "Joggers", Category_ID = 2 },   // Joggers and sweatpants
              new Product_Type { Type_ID = 7, Type_Name = "Leggings", Category_ID = 2 },  // All leggings
                new Product_Type { Type_ID = 8, Type_Name = "Compression Tights", Category_ID = 2 }, // Compression tights

                  // Types for "Gear" (Category_ID = 3)
                  new Product_Type { Type_ID = 9, Type_Name = "Gloves", Category_ID = 3 },    // Weightlifting gloves, workout gloves
                    new Product_Type { Type_ID = 10, Type_Name = "Socks", Category_ID = 3 },    // Athletic socks
                      new Product_Type { Type_ID = 11, Type_Name = "Accessories", Category_ID = 3 } // Wrist wraps, resistance bands, gym bags, etc.
};

builder.Entity<Product_Type>().HasData(ProductTypes);
content_copyCOPY