public SalesRecordService(SalesWebMvcContext context) { _context = context; }
public DepartmentsController(SalesWebMvcContext context) { _context = context; }
public DepartmentsController(SalesWebMvcContext context, DepartmentService departmentService) { _context = context; _departmentService = departmentService; }
public RegistroVendasService(SalesWebMvcContext context) { _context = context; }
public UsersController(SalesWebMvcContext context) { _context = context; }
public SellerService(SalesWebMvcContext context) { _context = context; //dependencia }
public ProductsController(SalesWebMvcContext context, IConfiguration configuration) { _context = context; Configuration = configuration; }
public DepartmentService(SalesWebMvcContext contex) { _contex = contex; }
public ProductsController(SalesWebMvcContext context) { _context = context; }
public EspecialistaService(SalesWebMvcContext context) { _contex = context; }
private readonly SalesWebMvcContext _context; //depêndencia classe do entity framework, responsável por "acessar os dados". public DepartmentsController(SalesWebMvcContext context) //injeção de dependência. { _context = context; }
private readonly SalesWebMvcContext _context; //criar o objeto de contexto public DepartamentService(SalesWebMvcContext context) // o contrutor para acessar o servico { _context = context; }
public CategoryService(SalesWebMvcContext context) { _context = context; }
public DepartmentService(SalesWebMvcContext context) { _context = context; }
public SellerService(SalesWebMvcContext context) // construtor de injeção de depedência { _context = context; }
public SellerService(SalesWebMvcContext context) { _context = context; }
public SellerService(SalesWebMvcContext context) // Injeçaõ de dependencia do DB Context { _context = context; }