public StudentsSystemData(IStudentSystemDbContext context) { if (context == null) { throw new ArgumentException(); } this.context = context; }
public GenericRepository(IStudentSystemDbContext context) { if (context == null) { throw new ArgumentException("An instance of DbContext is required to use this repository.", "context"); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public StudentSystemData(IStudentSystemDbContext studentSystemDbContext) { this.context = studentSystemDbContext; }
public CoursesRepository(IStudentSystemDbContext context) : base(context) { }
public StudentController(IStudentSystemDbContext context) { this.context = context; this.repository = new StudentsRepository(this.context); }
public StudentsRepository(IStudentSystemDbContext studentSystemDbContext) : base(studentSystemDbContext) { }
public HomeworkController(IStudentSystemDbContext context) { this.context = context; this.repository = new GenericRepository <Homework>(this.context); }
public GenericRepository(IStudentSystemDbContext studentSystemContext) { this.dbContext = studentSystemContext; }
public HomeworksRepository(IStudentSystemDbContext context) : base(context) { }
public TestsRepository(IStudentSystemDbContext context) : base(context) { }
public StudentSystemData(IStudentSystemDbContext context) { this.context = context; this.repositories = new Dictionary<Type, object>(); }
public CourseController(IStudentSystemDbContext context) { this.context = context; this.repository = new GenericRepository<Course>(this.context); }
public HomeworksController(IStudentSystemDbContext db) { this.db = db; }
public GenericRepository(IStudentSystemDbContext context) { this.context = context; }
public CourseController(IStudentSystemDbContext context) { this.context = context; this.repository = new GenericRepository <Course>(this.context); }
public HomeworkController(IStudentSystemDbContext context) { this.context = context; this.repository = new GenericRepository<Homework>(this.context); }
public Repository(IStudentSystemDbContext context) { this.context = context; this.set = context.Set <T>(); }
public CoursesController(IStudentSystemDbContext db) { this.db = db; }
public TestController(IStudentSystemDbContext context) { this.context = context; this.repository = new GenericRepository<Test>(this.context); }
public GenericRepository(IStudentSystemDbContext studentSystemDbContex) { this.context = studentSystemDbContex; }
public TestsController(IStudentSystemDbContext db) { this.db = db; }
public GenericRepository(IStudentSystemDbContext context) { this.Context = context; this.DbSet = this.Context.Set <T>(); }
public StudentsSystemData(IStudentSystemDbContext context) { this.context = context; this.repositories = new Dictionary <Type, object>(); }
public TestController(IStudentSystemDbContext context) { this.context = context; this.repository = new GenericRepository <Test>(this.context); }