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 UserRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #3
0
 public ClassRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #4
0
 public ScheduleRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public ConnectionRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }