예제 #1
0
 public ItemProperties(StoreContext storeContext, ItemVariants itemVariants, CharacteristicValues characteristicValues) : base(storeContext)
 {
     ItemVariants         = itemVariants;
     CharacteristicValues = characteristicValues;
     Seed();
     Init();
 }
예제 #2
0
 public SampleData(StoreContext context, IConfiguration configuration)
 {
     Context = context;
     if (DropBeforeSeed)
     {
         Context.Database.EnsureDeleted();
     }
     Users                = new Users();
     Brands               = new Brands(Context);
     Stores               = new Stores(Context);
     Categories           = new Categories(Context);
     Characteristics      = new Characteristics(Context, Categories);
     CharacteristicValues = new CharacteristicValues(Context, Characteristics);
     Items                = new Items(Context, Brands, Stores, Categories);
     ItemVariants         = new ItemVariants(Context, Items);
     CartItems            = new CartItems(Context, ItemVariants);
     ItemProperties       = new ItemProperties(Context, ItemVariants, CharacteristicValues);
     ItemVariantImages    = new ItemVariantImages(Context, ItemVariants, Categories, configuration);
     Orders               = new Orders(Context, ItemVariants);
 }