Beispiel #1
0
 public CalculadoraController(calculadoradbContext context, ICalculatorRepository repo, IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _repo       = repo;
     _context    = context;
 }
Beispiel #2
0
 public UnitOfWork(calculadoradbContext context)
 {
     _context    = context;
     Operaciones = new CalculatorRepository(_context);
 }
 public CalculatorRepository(calculadoradbContext context) : base(context)
 {
     _context = context;
 }
Beispiel #4
0
 public GenericRepository(calculadoradbContext context)
 {
     _entities = context.Set <T>();
     _context  = context;
 }