public static void SeedData(ProffyDbContext proffyContext)
 {
     System.Console.WriteLine("Applying Migrations...");
     proffyContext.Database.Migrate();
     System.Console.WriteLine("Finished applying migrations...");
     proffyContext.SaveChanges();
 }
Example #2
0
 public bool SaveChanges()
 {
     return(_dbContext.SaveChanges() > 0);
 }