Exemple #1
0
        public static void Seed(RowdyRuffContext context)
        {
            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            var sampleProfile = FakeProfile();

            context.Set <ClientProfile>().Add(sampleProfile);

            context.SaveChanges();
        }
Exemple #2
0
 public void ConfigureDevelopment(RowdyRuffContext dbContext)
 {
     DbInitializer.Seed(dbContext);
 }