Пример #1
0
        public StudentsSystemData(IStudentSystemDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException();
            }

            this.context = context;
        }
        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>();
        }
Пример #4
0
 public StudentSystemData(IStudentSystemDbContext studentSystemDbContext)
 {
     this.context = studentSystemDbContext;
 }
Пример #5
0
 public CoursesRepository(IStudentSystemDbContext context)
     : base(context)
 {
 }
 public StudentController(IStudentSystemDbContext context)
 {
     this.context    = context;
     this.repository = new StudentsRepository(this.context);
 }
Пример #7
0
 public StudentsRepository(IStudentSystemDbContext studentSystemDbContext)
     : base(studentSystemDbContext)
 {
 }
 public HomeworkController(IStudentSystemDbContext context)
 {
     this.context    = context;
     this.repository = new GenericRepository <Homework>(this.context);
 }
Пример #9
0
 public GenericRepository(IStudentSystemDbContext studentSystemContext)
 {
     this.dbContext = studentSystemContext;
 }
Пример #10
0
 public HomeworksRepository(IStudentSystemDbContext context)
     : base(context)
 {
 }
Пример #11
0
 public TestsRepository(IStudentSystemDbContext context)
     : base(context)
 {
 }
Пример #12
0
 public StudentController(IStudentSystemDbContext context)
 {
     this.context = context;
     this.repository = new StudentsRepository(this.context);
 }
Пример #13
0
 public StudentSystemData(IStudentSystemDbContext context)
 {
     this.context = context;
     this.repositories = new Dictionary<Type, object>();
 }
Пример #14
0
 public CourseController(IStudentSystemDbContext context)
 {
     this.context = context;
     this.repository = new GenericRepository<Course>(this.context);
 }
 public HomeworksController(IStudentSystemDbContext db)
 {
     this.db = db;
 }
Пример #16
0
 public GenericRepository(IStudentSystemDbContext context)
 {
     this.context = context;
 }
 public CourseController(IStudentSystemDbContext context)
 {
     this.context    = context;
     this.repository = new GenericRepository <Course>(this.context);
 }
Пример #18
0
 public HomeworkController(IStudentSystemDbContext context)
 {
     this.context = context;
     this.repository = new GenericRepository<Homework>(this.context);
 }
Пример #19
0
 public Repository(IStudentSystemDbContext context)
 {
     this.context = context;
     this.set     = context.Set <T>();
 }
Пример #20
0
 public CoursesController(IStudentSystemDbContext db)
 {
     this.db = db;
 }
Пример #21
0
 public TestController(IStudentSystemDbContext context)
 {
     this.context = context;
     this.repository = new GenericRepository<Test>(this.context);
 }
Пример #22
0
 public GenericRepository(IStudentSystemDbContext studentSystemDbContex)
 {
     this.context = studentSystemDbContex;
 }
Пример #23
0
 public TestsController(IStudentSystemDbContext db)
 {
     this.db = db;
 }
Пример #24
0
 public GenericRepository(IStudentSystemDbContext context)
 {
     this.Context = context;
     this.DbSet   = this.Context.Set <T>();
 }
Пример #25
0
 public StudentSystemData(IStudentSystemDbContext studentSystemDbContext)
 {
     this.context = studentSystemDbContext;
 }
Пример #26
0
 public StudentsSystemData(IStudentSystemDbContext context)
 {
     this.context      = context;
     this.repositories = new Dictionary <Type, object>();
 }
Пример #27
0
 public TestController(IStudentSystemDbContext context)
 {
     this.context    = context;
     this.repository = new GenericRepository <Test>(this.context);
 }