예제 #1
0
 /// <summary>
 /// Constructor of Billing factory.
 /// </summary>
 /// <param name="ctx">DB Context inherited from Base Facory</param>
 /// <param name="repository">Class type repository injection</param>
 /// <param name="mapper">Automapper injection</param>
 /// <param name="addressFactory">Address factory injection</param>
 public BillingInfoFactory(ManagementSystemContext ctx, IBillingInfoRepository repository, IMapper mapper, IAddressFactory addressFactory) :
     base(ctx)
 {
     _addressFactory = addressFactory;
     _repository     = repository;
     _mapper         = mapper;
 }
예제 #2
0
 /// <summary>
 /// Constructor of Customer factory.
 /// </summary>
 /// <param name="ctx">DB Context inherited from Base Facory</param>
 /// <param name="repository">Class type repository injection</param>
 /// <param name="mapper">Automapper injection</param>
 /// <param name="billingInfoFactory">Billing info factory injection</param>
 public CustomerFactory(ManagementSystemContext ctx, ICustomerRepository repository, IMapper mapper,
                        IBillingInfoFactory billingInfoFactory) :
     base(ctx)
 {
     _billingInfoFactory = billingInfoFactory;
     _repository         = repository;
     _mapper             = mapper;
 }
예제 #3
0
 /// <summary>
 /// Constructor of Developer factory.
 /// </summary>
 /// <param name="ctx">DB Context inherited from Base Facory</param>
 /// <param name="repository">Class type repository injection</param>
 /// <param name="customerRepository">Customer repository injection</param>
 /// <param name="mapper">Automapper injection</param>
 public ProjectFactory(ManagementSystemContext ctx, IProjectRepository repository,
                       ICustomerRepository customerRepository, IMapper mapper) :
     base(ctx)
 {
     _repository         = repository;
     _customerRepository = customerRepository;
     _mapper             = mapper;
 }
예제 #4
0
파일: TaskFactory.cs 프로젝트: ptrD3V/CPMS
 /// <summary>
 /// Constructor of Task factory.
 /// </summary>
 /// <param name="ctx">DB Context inherited from Base Facory</param>
 /// <param name="repository">Class type repository injection</param>
 /// <param name="mapper">Automapper injection</param>
 public TaskFactory(ManagementSystemContext ctx, ITaskRepository repository, IMapper mapper) :
     base(ctx)
 {
     _repository = repository;
     _mapper     = mapper;
 }
예제 #5
0
 /// <summary>
 /// Constructor of Developer factory.
 /// </summary>
 /// <param name="ctx">DB Context inherited from Base Facory</param>
 /// <param name="repository">Class type repository injection</param>
 /// <param name="mapper">Automapper injection</param>
 public DeveloperFactory(ManagementSystemContext ctx, IDeveloperRepository repository, IMapper mapper) :
     base(ctx)
 {
     _repository = repository;
     _mapper     = mapper;
 }
예제 #6
0
 public DeveloperRepository(ManagementSystemContext ctx, ILogger <DeveloperDTO> logger) :
     base(ctx, logger)
 {
 }
예제 #7
0
 public DevicesController(ManagementSystemContext db)
 {
     this.db = db;
 }
예제 #8
0
 public InvoiceRepository(ManagementSystemContext ctx, ILogger <InvoiceDTO> logger) :
     base(ctx, logger)
 {
 }
예제 #9
0
 public AddressRepository(ManagementSystemContext ctx) :
     base(ctx)
 {
 }
예제 #10
0
 public BillingInfoRepository(ManagementSystemContext ctx, ILogger <BillingInfoDTO> logger) :
     base(ctx, logger)
 {
 }
예제 #11
0
 public TimeRepository(ManagementSystemContext ctx, ILogger <TimeDTO> logger) :
     base(ctx, logger)
 {
 }
예제 #12
0
 public ProjectRepository(ManagementSystemContext ctx, ILogger <ProjectDTO> logger) :
     base(ctx, logger)
 {
 }
 public EmployeesController(ManagementSystemContext context)
 {
     _context = context;
 }
예제 #14
0
파일: BaseFactory.cs 프로젝트: ptrD3V/CPMS
 /// <summary>
 /// Constructor of generic factory
 /// </summary>
 /// <param name="ctx">DB context</param>
 public BaseFactory(ManagementSystemContext ctx)
 {
     _ctx = ctx;
 }
예제 #15
0
 /// <summary>
 /// Constructor injects dependencies, that are shared with all repositories
 /// </summary>
 /// <param name="ctx">DB Context</param>
 /// <param name="logger">Logger</param>
 public BaseRepository(ManagementSystemContext ctx, ILogger <T> logger)
 {
     _ctx    = ctx;
     _logger = logger;
 }
예제 #16
0
 public BaseRepository(ManagementSystemContext ctx)
 {
     _ctx = ctx;
 }
예제 #17
0
 public MachinesController(ManagementSystemContext context)
 {
     _context = context;
 }
예제 #18
0
 public CustomerRepository(ManagementSystemContext ctx, ILogger <CustomerDTO> logger) :
     base(ctx, logger)
 {
 }
예제 #19
0
 public CommentRepository(ManagementSystemContext ctx, ILogger<CommentDTO> logger) :
     base(ctx, logger)
 { }
예제 #20
0
 public CommentsController(ManagementSystemContext context)
 {
     _context = context;
 }
예제 #21
0
 /// <summary>
 /// Constructor of Address factory.
 /// </summary>
 /// <param name="ctx">DB Context inherited from Base Facory</param>
 /// <param name="repository">Class type repository injection</param>
 /// <param name="mapper">Automapper injection</param>
 public AddressFactory(ManagementSystemContext ctx, IAddressRepository repository, IMapper mapper) :
     base(ctx)
 {
     _mapper     = mapper;
     _repository = repository;
 }