Beispiel #1
0
 public SqlContosoRepository(DbContextOptionsBuilder <ContosoContext>
                             dbOptionsBuilder)
 {
     _dbOptions = dbOptionsBuilder.Options;
     using (var db = new ContosoContext(_dbOptions))
     {
         db.Database.EnsureCreated();
     }
 }
Beispiel #2
0
 public SqlProductRepository(ContosoContext db)
 {
     _db = db;
 }
 public SqlUserRepository(ContosoContext db)
 {
     _db = db;
 }
Beispiel #4
0
 public SqlCustomerRepository(ContosoContext db)
 {
     _db = db;
 }
Beispiel #5
0
 public SqlGroupRepository(ContosoContext db)
 {
     _db = db;
 }
 public SqlTeacherRepository(ContosoContext db)
 {
     _db = db;
 }
Beispiel #7
0
 public SqlPositionRepository(ContosoContext db)
 {
     _db = db;
 }
 public SqlDisciplineRepository(ContosoContext db)
 {
     _db = db;
 }
Beispiel #9
0
 public SqlOrderRepository(ContosoContext db) => _db = db;