Пример #1
0
        public UnitOfWork(PlutoContext context)
        {
            _context = context;

            Courses = new CourseRepository(_context);
            Authors = new AuthorRepository(_context);
        }
 public UnitOfWork(PlutoContext context)
 {
     _context = context;
     Courses = new CourseRepository(_context);
     Authors = new AuthorRepository(_context);
 }
 public UnitOfWork(PlutoContext ctx)
 {
     _ctx    = ctx;
     Courses = new CourseRepository(_ctx);
     Authors = new AuthorRepository(_ctx);
 }