public BuTarea() { var db = new DbFactory(); _repository = new TareaRepository(db); _unitOfWork = new UnitOfWork(db); }
public TareasController(ITareaRepository tareaRepository) { _tareaRepository = tareaRepository; }
public TareaService(IUnitOfWork unitOfWork, ITareaRepository TareaRepository) : base(unitOfWork, TareaRepository) { _unitOfWork = unitOfWork; _TareaRepository = TareaRepository; }
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); }
public TareaService(TareaRepository _tareaRepository, TareaUtil _tareaUtil) { this.tareaRepository = _tareaRepository; this.tareaUtil = _tareaUtil; }