Example #1
0
 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)
 {
 }
Example #4
0
 public CalendarEventRepository(CalendarDbContext context) : base(context)
 {
 }
 public GenericRepository(CalendarDbContext context)
 {
     _context = context;
 }