public CourseRepository(CQRSAppDBContext context) : base(context) { }
public CQRSAppDBContext(DbContextOptions <CQRSAppDBContext> options) : base(options) { context = this; CourseRepositroy = new CourseRepository(context); DepartmentRepositroy = new DepartmentRepository(context); }
public DepartmentRepository(CQRSAppDBContext context) : base(context) { departments = context.Departments; this.context = context; }