Ejemplo n.º 1
0
 public StudentsDao(IStudentDbContext dbContext)
 {
     studentDb = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }
Ejemplo n.º 2
0
 public UnitOfWork(IStudentDbContext studentDbContext)
 {
     _context = studentDbContext;
     Students = new StudentRepository(_context);
     Subjects = new SubjectRepository(_context);
 }
 public SubjectRepository(IStudentDbContext context) : base(context as DbContext)
 {
     _context = context;
 }