示例#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);
 }
 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);
 }
 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>();
 }
 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>();
 }
 public TestController(IStudentSystemDbContext context)
 {
     this.context    = context;
     this.repository = new GenericRepository <Test>(this.context);
 }