public void Seed(CBVinilContext context)
        {
            context.Database.EnsureCreated();

            if (!context.GeneroMusical.Any())
            {
                SeedGeneroMusical(context);
            }

            if (!context.DiaSemana.Any())
            {
                SeedDiaSemana(context);
            }

            if (!context.CashbackParametro.Any())
            {
                SeedCashbackParametro(context);
            }
        }
        public static void Initialize(CBVinilContext context)
        {
            var instance = new CBVinilInitializer();

            instance.Seed(context);
        }
 public void SeedGeneroMusical(CBVinilContext context)
 {
     context.GeneroMusical.AddRange(GeneroMusicalSeed.Seeds);
     context.SaveChanges();
 }
 private void SeedDiaSemana(CBVinilContext context)
 {
     context.DiaSemana.AddRange(DiaSemanaSeed.Seeds);
     context.SaveChanges();
 }
 private void SeedCashbackParametro(CBVinilContext context)
 {
     context.CashbackParametro.AddRange(CashbackParametroSeed.Seeds);
     context.SaveChanges();
 }