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