public SqlEmpleadosRepository(DbContextOptionsBuilder <Tarea3Context> dbOptionsBuilder) { _dbOptions = dbOptionsBuilder.Options; using (var db = new Tarea3Context(_dbOptions)) { db.Database.EnsureCreated(); } }
public SqlPeopleRepository(Tarea3Context db) { _db = db; }
public SqlEmployeeRepository(Tarea3Context db) { _db = db; }
public SqlFamilyRepository(Tarea3Context db) { _db = db; }
public SqlPaymentsRepository(Tarea3Context db) { _db = db; }