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