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