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