public static void SeedData(ProffyDbContext proffyContext)
 {
     System.Console.WriteLine("Applying Migrations...");
     proffyContext.Database.Migrate();
     System.Console.WriteLine("Finished applying migrations...");
     proffyContext.SaveChanges();
 }
Beispiel #2
0
 public UserRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #3
0
 public ClassRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #4
0
 public ScheduleRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public ConnectionRepository(ProffyDbContext dbContext)
 {
     _dbContext = dbContext;
 }