Пример #1
0
        public BuTarea()
        {
            var db = new DbFactory();

            _repository = new TareaRepository(db);
            _unitOfWork = new UnitOfWork(db);
        }
 public TareasController(ITareaRepository tareaRepository)
 {
     _tareaRepository = tareaRepository;
 }
Пример #3
0
 public TareaService(IUnitOfWork unitOfWork, ITareaRepository TareaRepository)
     : base(unitOfWork, TareaRepository)
 {
     _unitOfWork      = unitOfWork;
     _TareaRepository = TareaRepository;
 }
Пример #4
0
 public TareaService(ITareaRepository pTareaRepository)
 {
     this.TareaRepository = pTareaRepository;
 }
 /// <summary>
 /// Constructor que recibe el contexto de base
 /// de datos e inicializa los repositorios
 /// </summary>
 /// <param name="context">Contexto de base de datos</param>
 public UnitOfWork(ProyectoContext context)
 {
     _context = context;
     Modulos  = new ModuloRepository(_context);
     Tareas   = new TareaRepository(_context);
 }
Пример #6
0
 public TareaService(TareaRepository _tareaRepository, TareaUtil _tareaUtil)
 {
     this.tareaRepository = _tareaRepository;
     this.tareaUtil = _tareaUtil;
 }