public HomeController(TESTContext context, ILogger <HomeController> logger, IDepartmentService departmentService, IEmployeeService employeeService, IUnitOfWork unitOfWork) { _context = context; _logger = logger; _departmentService = departmentService; _employeeService = employeeService; _unitOfWork = unitOfWork; }
public RDSRepo(TESTContext context) { if (context == null) { throw new ArgumentNullException("context"); } _context = context; }
//Openning connection using Dependency injection public RawRepository(TESTContext context, string sql) { _context = context; _sql = sql; _connection = _context.Database.GetDbConnection(); if (_connection.State != ConnectionState.Open) { _connection.Open(); } }
public ProductsController(TESTContext context) { _context = context; }
public UnitOfWork(IOptions <SqlOption> connectionString) { _repositories = new Hashtable(); _context = new TESTContext(connectionString); }
public DepartmentsController(TESTContext context, IUnitOfWork unitOfWork, IDepartmentService departmentService) { _context = context; _unitOfWork = unitOfWork; _departmentService = departmentService; }
public Repository(TESTContext context) { _context = context; _entities = context.Set <TEntity>(); }
public AuthorizeController(TESTContext context, TESTResourceContext contextResource, IOptions <AppSettings> settings) { _context = context; _contextResouce = contextResource; _settings = settings.Value; }
public EmployeesController(TESTContext context, IUnitOfWork unitOfWork) { _context = context; _unitOfWork = unitOfWork; }
public AlumnosController(TESTContext context) { _context = context; }
public BusinessPerson(TESTContext context) { _context = context; }
public ColoniaController(TESTContext context) { _context = context; }
public TokenController(IConfiguration config, TESTContext context) { _configuration = config; _context = context; }