public BlogArticleService(IUnitOfWork uow, IMapper mapper, IBlogArticleRepository blogArticleRepository, IPropertyMappingContainer <string> propertyMappingContainer) { this._uow = uow; this._mapper = mapper; this._blogArticleRepository = blogArticleRepository; this._propertyMappingContainer = propertyMappingContainer; }
public PostRepository( MyContext myContext, IPropertyMappingContainer propertyMappingContainer) { this.myContext = myContext; this.propertyMappingContainer = propertyMappingContainer; }
public TopSongController( SongRepository repository, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) : base(urlHelper, propertyMappingContainer, typeHelperService) { _repository = repository; _mapper = mapper; }
public SysLogService(IUnitOfWork uow, IMapper mapper, ISysLogRepository logRepository, IPropertyMappingContainer <int> propertyMappingContainer) { this._uow = uow; this._mapper = mapper; this._logRepository = logRepository; this._propertyMappingContainer = propertyMappingContainer; }
public SysRoleService(IUnitOfWork uow, IMapper mapper, ISysRoleRepository roleRepository, IPropertyMappingContainer <string> propertyMappingContainer) { this._uow = uow; this._mapper = mapper; this._roleRepository = roleRepository; this._propertyMappingContainer = propertyMappingContainer; }
public SysUserService(IUnitOfWork uow, IMapper mapper, ISysUserRepository userRepository, IPropertyMappingContainer <string> propertyMappingContainer) { this._uow = uow; this._mapper = mapper; this._userRepository = userRepository; this._propertyMappingContainer = propertyMappingContainer; }
public PostController( IPostRepository postRepository, IUnitOfWork unitOfWork, ILoggerFactory loggerFactory, IConfiguration configuration, IMapper mapper, IHttpContextAccessor accessor, LinkGenerator generator, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer, IConnectionMultiplexer redis ) { this.postRepository = postRepository; this.unitOfWork = unitOfWork; this.configuration = configuration; this.mapper = mapper; this.accessor = accessor; this.generator = generator; this.typeHelperService = typeHelperService; this.propertyMappingContainer = propertyMappingContainer; this.redis = redis; this.db = redis.GetDatabase(); this.logger = loggerFactory.CreateLogger("Blog Api Controller.PostController"); }
public ProjectQueryDTOValidator(IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) { RuleFor(e => e.OrderBy).Must(order => propertyMappingContainer.ValidMappingExistsFor <ProductDTO, Product>(order)) .WithMessage("Can't find the fields in {PropertyName} for sorting."); RuleFor(e => e.Fields).Must(fields => typeHelperService.TypeHasProperties <ProductDTO>(fields)) .WithMessage("Can't find the fields in {PropertyName} on DTO."); }
/// <summary> /// 构造函数注入服务 /// </summary> /// <param name="postBusiness"></param> /// <param name="loggerFactory"></param> /// <param name="mapper"></param> /// <param name="urlHelper"></param> /// <param name="typeHelperService"></param> /// <param name="propertyMappingContainer"></param> public PostController(IPostBusiness postBusiness, ILoggerFactory loggerFactory, IMapper mapper, IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer) { _postBusiness = postBusiness; _loggerFactory = loggerFactory; _mapper = mapper; _urlHelper = urlHelper; _typeHelperService = typeHelperService; _propertyMappingContainer = propertyMappingContainer; }
public PostController(IPostRepository postRepository, IUnitOfWork unitOfWork, IMapper mapper, IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer) { _postRepository = postRepository; _unitOfWork = unitOfWork; _mapper = mapper; _urlHelper = urlHelper; _typeHelperService = typeHelperService; _propertyMappingContainer = propertyMappingContainer; }
public PostseedController(IPostRepository postRepository, IUnitOfWork unitOfWork, ILoggerFactory loggerFactory, IMapper mapper, IUrlHelper urlHelper, ITypeService typeService, IPropertyMappingContainer propertyMappingContainer) { _postRepository = postRepository; _unitOfWork = unitOfWork; _logger = loggerFactory.CreateLogger("BlogDemo.Api.Controllers.PostseedController"); _mapper = mapper; _urlHelper = urlHelper; _typeService = typeService; _propertyMappingContainer = propertyMappingContainer; }
public BasicController( IUrlHelper urlHelper, IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) { _urlHelper = urlHelper; _propertyMappingContainer = propertyMappingContainer; _typeHelperService = typeHelperService; Results = new List <ObjectResult>(); }
public MenstruationLogController(IUnitOfWork unitOfWork, IMapper mapper, IMenstruationLogRepository mlogRepository, ILoverCloudUserRepository userRepository, IPropertyMappingContainer propertyMappingContainer) { _unitOfWork = unitOfWork; _mapper = mapper; _mlogRepository = mlogRepository; _userRepository = userRepository; _propertyMappingContainer = propertyMappingContainer; }
/// <summary> /// 用户构造函数 /// </summary> /// <param name="work">DB Work</param> /// <param name="repository">业务实例</param> /// <param name="mapper">映射</param> /// <param name="typeHelperService">字段验证</param> /// <param name="propertyMappingContainer">排序验证</param> public DictionaryController(IUnitDbWork work, IDictionaryRepository repository, IMapper mapper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer ) : base(work) { this.repository = repository; this.mapper = mapper; this.typeHelperService = typeHelperService; this.propertyMappingContainer = propertyMappingContainer; }
public PassportService(IAccountRespository accountRespository, IPasswordHandler passwordHandler, IRoleRespository roleRespository, IMenuRespository menuRespository, IPropertyMappingContainer propertyMappingContainer, IMapper mapper) : base(propertyMappingContainer, mapper) { _accountRepository = accountRespository; _passwordHadler = passwordHandler; _roleRespository = roleRespository; _menuRespository = menuRespository; }
public StockController(MyContext myContext, IRepository <Stock, StockParameters> repository, IUnitOfWork unitOfWork, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) : base(urlHelper, propertyMappingContainer, typeHelperService) { _myContext = myContext; _repository = repository; _unitOfWork = unitOfWork; _mapper = mapper; }
public IndexControllers(IUnitForWork unitForWork, IArticleRepository repository, ILogger <IndexControllers> logger, IMapper mapper, ITypehelper typeHelper, IPropertyMappingContainer propertyMappingContainer) { UnitForWork = unitForWork; Repository = repository; Logger = logger; Mapper = mapper; TypeHelper = typeHelper; PropertyMappingContainer = propertyMappingContainer; }
public LoverAnniversaryController(IUnitOfWork unitOfWork, ILoverAnniversaryRepository anniversaryRepository, IMapper mapper, ILoverCloudUserRepository userRepository, IPropertyMappingContainer propertyMappingContainer, IAuthorizationService authorizationService) { _unitOfWork = unitOfWork; _anniversaryRepository = anniversaryRepository; _mapper = mapper; _userRepository = userRepository; _propertyMappingContainer = propertyMappingContainer; _authorizationService = authorizationService; }
/// <summary> /// /// </summary> /// <param name="unitOfWork"></param> /// <param name="countryRepository"></param> /// <param name="mapper"></param> /// <param name="urlHelper"></param> /// <param name="propertyMappingContainer"></param> /// <param name="typeHelperService"></param> public CountryController(IUnitOfWork unitOfWork, ICountryRepository countryRepository, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) { _unitOfWork = unitOfWork; _mapper = mapper; _urlHelper = urlHelper; _countryRepository = countryRepository; _propertyMappingContainer = propertyMappingContainer; _typeHelperService = typeHelperService; }
public LoverPhotoController(IUnitOfWork unitOfWork, IMapper mapper, IPropertyMappingContainer propertyMappingContainer, ILoverPhotoRepository repository, ILoverRepository loverRepository, ILoverCloudUserRepository userRepository, IAuthorizationService authorizationService) { _unitOfWork = unitOfWork; _mapper = mapper; _propertyMappingContainer = propertyMappingContainer; _repository = repository; _loverRepository = loverRepository; _userRepository = userRepository; _authorizationService = authorizationService; }
public OrderController(IOrderRepository orderRepository, IUnitOfWork unitOfWork, ILogger <OrderController> logger, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) { _orderRepository = orderRepository; _unitOfWork = unitOfWork; _logger = logger; _mapper = mapper; _urlHelper = urlHelper; _propertyMappingContainer = propertyMappingContainer; _typeHelperService = typeHelperService; }
public ScoreController( IScoreRepository scoreRepository, IUnitOfWork unitOfWork, ILogger <ScoreController> logger, IMapper mapper, IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer) { _scoreRepository = scoreRepository; _unitOfWork = unitOfWork; _logger = logger; _mapper = mapper; _urlHelper = urlHelper; _typeHelperService = typeHelperService; _propertyMappingContainer = propertyMappingContainer; }
public PostController( IPostRepository postRepository, IUnitOfWork unitOfWork, ILogger <PostController> logger, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingContainer propertyMappingContainer, ITypeHelperService typeHelperService) { this.postRepository = postRepository; this.unitOfWork = unitOfWork; this.logger = logger; this.mapper = mapper; this.urlHelper = urlHelper; this.propertyMappingContainer = propertyMappingContainer; this.typeHelperService = typeHelperService; }
public PostController(IPostRepository postRepository, IUnitOfWork unitOfWork, ILogger <PostController> logger, IConfiguration configuration, IMapper mapper, IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer) { _postRepository = postRepository; _unitOfWork = unitOfWork; _logger = logger; _configuration = configuration; _mapper = mapper; _urlHelper = urlHelper; _typeHelperService = typeHelperService; _propertyMappingContainer = propertyMappingContainer; }
public PostController( IPostRepository postRepository, IUnitOfWork unitOfWork, ILogger <PostController> logger, IMapper mapper, IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer, IHostingEnvironment hostingEnvironment, IPostImageRepository postImageRepository ) { _urlHelper = urlHelper; _typeHelperService = typeHelperService; _propertyMappingContainer = propertyMappingContainer; _mapper = mapper; _logger = logger; _unitOfWork = unitOfWork; _postRepository = postRepository; }
public PostController(IPostRepository postRepository, IUnitOfWork unitOfWork, //ILogger<PostController> logger//log两种方式 ILoggerFactory loggerFactory, IConfiguration configuration, IMapper mapper,//AotuMapper IValidator <PostUpdateResource> validator, IUrlHelper urlHelper, ITypeHelperService typeHelperService, IPropertyMappingContainer propertyMappingContainer ) { this._postRepository = postRepository; this._unitOfWork = unitOfWork; this._configuration = configuration; this._mapper = mapper; this._validator = validator; this._urlHelper = urlHelper; this._typeHelperService = typeHelperService; this._propertyMappingContainer = propertyMappingContainer; //this._logger = logger; this._logger = loggerFactory.CreateLogger(nameof(PostController)); }
public CountryRepository(MyContext myContext, IPropertyMappingContainer propertyMappingContainer) { _myContext = myContext; _propertyMappingContainer = propertyMappingContainer; }
public PostRepository(MyContext myContext, IPropertyMappingContainer propertyMappingContainer) { _propertyMappingContainer = propertyMappingContainer; _myContext = myContext; }
public DictionaryRepository(ZfsDbContext context, IPropertyMappingContainer propertyMappingContainer) : base(context) { this.propertyMappingContainer = propertyMappingContainer; }
public ProductRepository(DemoContext context, IPropertyMappingContainer propertyMappingContainer) { _context = context; _propertyMappingContainer = propertyMappingContainer;