示例#1
0
 public CourseRepository(CQRSAppDBContext context) : base(context)
 {
 }
示例#2
0
 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;
 }