예제 #1
0
 public UserRepository(UserContext userContext, CapstoneContext capstoneContext, DayContext dayContext, TaskContext taskContext)
 {
     _context           = userContext;
     capstoneRepository = new CapstoneRepository(capstoneContext, dayContext, taskContext);
     dayRepository      = new DayRepository(dayContext, taskContext);
     taskRepository     = new TaskRepository(taskContext);
 }
예제 #2
0
 public CapstoneRepository(CapstoneContext context, DayContext dayContext, TaskContext taskContext)
 {
     _context       = context;
     dayRepository  = new DayRepository(dayContext, taskContext);
     taskRepository = new TaskRepository(taskContext);
 }