public UnitOfWork(CalendarDbContext context) { _context = context; CalendarEvents = new CalendarEventRepository(_context); Organizations = new OrganizationRepository(_context); Departments = new DepartmentRepository(_context); }
public DepartmentRepository(CalendarDbContext context) : base(context) { }
public OrganizationRepository(CalendarDbContext context) : base(context) { }
public CalendarEventRepository(CalendarDbContext context) : base(context) { }
public GenericRepository(CalendarDbContext context) { _context = context; }