コード例 #1
0
 public OrderController(IOrderRepository orderRepository,
                        ICustomerRepository customerRepository, IProductRepository productRepository,
                        IExtraRepository extraRepository, IOrderProductRepository orderProductRepository)
 {
     this.orderRepository        = orderRepository;
     this.customerRepository     = customerRepository;
     this.productRepository      = productRepository;
     this.extraRepository        = extraRepository;
     this.orderProductRepository = orderProductRepository;
 }
コード例 #2
0
 public CarExtras(int currentId)
 {
     _currentId          = currentId;
     _carExtraRepository = (ICarExtraRepository)StartUp.ServiceProvider.GetService(typeof(ICarExtraRepository));
     _extraRepository    = (IExtraRepository)StartUp.ServiceProvider.GetService(typeof(IExtraRepository));
     _carRepository      = (ICarRepository)StartUp.ServiceProvider.GetService(typeof(ICarRepository));
     InitializeComponent();
     OnStart();
     GetData();
 }
コード例 #3
0
 public ExtraController(
     IUnitOfWork unitOfWork,
     IExtraRepository extraRepository,
     IUnitRepository unitRepository,
     IMapper mapper)
 {
     _unitOfWork      = unitOfWork;
     _extraRepository = extraRepository;
     _unitRepository  = unitRepository;
     _mapper          = mapper;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CarBrandLogic"/> class.
 /// </summary>
 /// <param name="carBrandRepository">Carbrand repo</param>
 /// <param name="modelRepository">Model repo</param>
 /// <param name="extraRepository">Extra repo</param>
 /// <param name="modelExtraSwitchRepository">Modelextraswitch repo</param>
 /// <param name="java">Java logic</param>
 public CarBrandLogic(
     ICarBrandRepository carBrandRepository,
     IModelRepository modelRepository,
     IExtraRepository extraRepository,
     IModelExtraSwitchRepository modelExtraSwitchRepository,
     IJava java)
 {
     this.carBrandRepository         = carBrandRepository;
     this.modelRepository            = modelRepository;
     this.extraRepository            = extraRepository;
     this.modelExtraSwitchRepository = modelExtraSwitchRepository;
     this.java = java;
 }
コード例 #5
0
 public RepositoryWrapper(
     IDataContext context,
     ISlipwayRepository slipwaysRepository,
     IWaterRepository waterRepository,
     IManufacturerRepository manufacturerRepository,
     IServiceRepository serviceRepository,
     IMarinaRepository marinaRepository,
     IStationRepository stationRepository,
     IExtraRepository extraRepository)
 {
     Context       = context;
     Slipways      = slipwaysRepository;
     Stations      = stationRepository;
     Marinas       = marinaRepository;
     Services      = serviceRepository;
     Waters        = waterRepository;
     Manufacturers = manufacturerRepository;
     Extras        = extraRepository;
 }
コード例 #6
0
 public ExtraController(IExtraRepository extraRepository)
 {
     this.extraRepository = extraRepository;
 }
コード例 #7
0
 private ExtrasController(IExtraRepository extraRepository)
 {
     _extraRepository = extraRepository;
 }