コード例 #1
0
        //public CaliberController()
        //{
        //    _caliberRepository = new CaliberRepository(new InventoryContext());
        //}

        public CaliberController(ICaliberRepository caliberRepository) => _caliberRepository = caliberRepository;
コード例 #2
0
 public CaliberService()
 {
     this.repository = new CaliberRepository();
     this.caliberCalibersRepository = new CaliberCalibersRepository();
 }
コード例 #3
0
 public CaliberService(ICaliberRepository iRepository, ICaliberCalibersRepository icaliberCalibersRepository)
 {
     this.repository = iRepository;
     this.caliberCalibersRepository = icaliberCalibersRepository;
 }
コード例 #4
0
 public NavController(ICaliberRepository repo)
 {
     repository = repo;
 }