Esempio n. 1
0
        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;
 }
Esempio n. 3
0
 public CandidateRepository(GeekHuntersDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 4
0
 public UnitOfWork(GeekHuntersDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 5
0
 public SkillRepository(GeekHuntersDbContext dbContext)
 {
     _dbContext = dbContext;
 }