public Startup(IConfiguration configuration) { Configuration = configuration; using (var client = new GeekHuntersDbContext()) { //Create the database file at a path defined in GeekHuntersDbContext client.Database.EnsureCreated(); //Create the database tables defined in GeekHuntersDbContext client.Database.Migrate(); } }
public CandidatesController(GeekHuntersDbContext context) { _context = context; }
public CandidateRepository(GeekHuntersDbContext dbContext) { _dbContext = dbContext; }
public UnitOfWork(GeekHuntersDbContext dbContext) { _dbContext = dbContext; }
public SkillRepository(GeekHuntersDbContext dbContext) { _dbContext = dbContext; }