コード例 #1
0
        public NewsRepository(NewsDBContext context, IMapper mapper, IConfiguration configuration, IUnitOfWork uw)
        {
            _context = context;
            _context.CheckArgumentIsNull(nameof(_context));

            _mapper = mapper;
            _mapper.CheckArgumentIsNull(nameof(_mapper));

            _configuration = configuration;
            _configuration.CheckArgumentIsNull(nameof(_configuration));

            _uw = uw;
            _uw.CheckArgumentIsNull(nameof(_uw));
        }
コード例 #2
0
 public CategoryRepository(NewsDBContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
     _context.CheckArgumentIsNull(nameof(_context));
 }