Beispiel #1
0
 public UnitOfWork()
 {
     db = new ScrumManagerDbContext(new DbContextOptions <ScrumManagerDbContext>());
 }
 private ScrumManagerDbContext _db;                  //private database connection
 public DbEventRepository(ScrumManagerDbContext db)  //inject the database connection
 {
     _db = db;
 }//injection