Esempio n. 1
0
        public UnitOfWork(TitanDbContext context)
        {
            var sessionId = Guid.NewGuid();

            _context    = context;
            Instructors = new InstructorRepository(_context);
            Courses     = new CourseRepository(_context);
        }
 public InstructorRepository(TitanDbContext context) : base(context)
 {
     _context = context;
 }
 public UnitOfWork(TitanDbContext context)
 {
     _context    = context;
     Instructors = new InstructorRepository(_context);
     Courses     = new CourseRepository(_context);
 }
 public TitanRepository(TitanDbContext context)
 {
     _context = context;
 }
Esempio n. 5
0
 public CourseRepository(TitanDbContext context) : base(context)
 {
     _context = context;
 }