コード例 #1
0
 public OrganizationAppService(IOrganizationDomainService organizationDomainService,
                               IDapperRepository <Domain.Organization, long> organizationRepository)
 {
     _organizationDomainService = organizationDomainService;
     _organizationRepository    = organizationRepository;
     _session = NullSurgingSession.Instance;
 }
コード例 #2
0
ファイル: UserAppService.cs プロジェクト: roy-wang/hero
 public UserAppService(IUserDomainService userDomainService,
                       IDapperRepository <UserInfo, long> userRepository)
 {
     _userDomainService = userDomainService;
     _userRepository    = userRepository;
     _session           = NullSurgingSession.Instance;
 }
コード例 #3
0
 public RoleAppService(IRoleDomainService roleDomainService,
                       IDapperRepository <Domain.Roles.Role, long> roleRepository)
 {
     _roleDomainService = roleDomainService;
     _roleRepository    = roleRepository;
     _session           = NullSurgingSession.Instance;
 }
コード例 #4
0
 public AbstractService(IMapper mapper, IDapperRepository <T, PK> repository, IAttachmentRepository attachmentRepository, IHttpContextAccessor accessor)
 {
     Mapper               = mapper;
     Repository           = repository;
     AttachmentRepository = attachmentRepository;
     HttpContextAccessor  = accessor;
 }
コード例 #5
0
 public SJCLAppServices(IDapperRepository <COUNT, long> cntDapperRepository, IDapperRepository <VW_SJCL_100, long> vwsjclDapperRepository, RoleNameAppService roleNameAppService, IDapperRepository <USER_NAME, long> userNamesRepository)
 {
     _cntDapperRepository    = cntDapperRepository;
     _vwsjclDapperRepository = vwsjclDapperRepository;
     _roleNameAppService     = roleNameAppService;
     _userNamesRepository    = userNamesRepository;
 }
コード例 #6
0
ファイル: SomeDomainService.cs プロジェクト: xgame92/Stove
        public SomeDomainService(
            IRepository <Person> personRepository,
            IRepository <Animal> animalRepository,
            IUnitOfWorkManager unitOfWorkManager,
            IDbContextProvider <AnimalStoveDbContext> animalDbContextProvider,
            IBackgroundJobManager hangfireBackgroundJobManager,
            IDapperRepository <Person> personDapperRepository,
            IDapperRepository <Animal> animalDapperRepository,
            ICacheManager cacheManager,
            IMessageBus messageBus,
            IScheduleJobManager hangfireScheduleJobManager,
            IDapperRepository <Product> productDapperRepository,
            IDapperRepository <Mail, Guid> mailDapperRepository)
        {
            _personRepository             = personRepository;
            _animalRepository             = animalRepository;
            _unitOfWorkManager            = unitOfWorkManager;
            _animalDbContextProvider      = animalDbContextProvider;
            _hangfireBackgroundJobManager = hangfireBackgroundJobManager;
            _personDapperRepository       = personDapperRepository;
            _animalDapperRepository       = animalDapperRepository;
            _cacheManager = cacheManager;
            _messageBus   = messageBus;
            _hangfireScheduleJobManager = hangfireScheduleJobManager;
            _productDapperRepository    = productDapperRepository;
            _mailDapperRepository       = mailDapperRepository;

            Logger = NullLogger.Instance;
        }
コード例 #7
0
        public DomainServiceTarefa(GenericRepository <Tarefa> repository, IDapperRepository dapper, IUnitOfWork uow) : base(repository, dapper, uow)
        {
            this._repository = repository;
            this._dapper     = dapper;
            this._uow        = uow;

            //_logger.Info("Teste - ModeOn Service Tarefa");
        }
コード例 #8
0
ファイル: UserAppService.cs プロジェクト: feelhum/hero
 public UserAppService(IUserDomainService userDomainService,
                       IDapperRepository <UserInfo, long> userRepository,
                       IDapperRepository <Domain.Roles.Role, long> roleRepository)
 {
     _userDomainService = userDomainService;
     _userRepository    = userRepository;
     _roleRepository    = roleRepository;
 }
コード例 #9
0
 public CorporationDomainService(IDapperRepository <Organization, long> organizationRepository,
                                 IDapperRepository <Corporation, long> corporationRepository,
                                 IDapperRepository <Department, long> departmentRepository)
 {
     _organizationRepository = organizationRepository;
     _corporationRepository  = corporationRepository;
     _departmentRepository   = departmentRepository;
 }
コード例 #10
0
 public ProductRepository(
     TraingRepositoryContext traingRepositoryContextBase,
     IDapperRepository <ProductDetailInfo> dapperRepository
     ) : base(traingRepositoryContextBase)
 {
     _traingRepositoryContext = traingRepositoryContextBase;
     _dapperRepository        = dapperRepository;
 }
コード例 #11
0
        public DomainServiceBase(GenericRepository <T> repository, IDapperRepository dapper, IUnitOfWork uow)
        {
            this._repository = repository;
            this._dapper     = dapper;
            this._uow        = uow;

            _logger = LogManager.GetLogger("LogInFile");
        }
コード例 #12
0
 public TestService(IBackgroundJobManager backgroundJobManager,
                    IDapperRepository <TaskModel> dapperRepository,
                    INotificationPublisher notificationPublisher)
 {
     this._backgroundJobManager  = backgroundJobManager;
     this._notificationPublisher = notificationPublisher;
     this._dapperRepository      = dapperRepository;
 }
コード例 #13
0
 public NewsService(IRepository <NewsEntity> newsRepository,
                    IDapperRepository dapperRepository,
                    IRepository <CategoryRelationshipsEntity> categoryRelationshipsRepository)
 {
     this._newsRepository   = newsRepository;
     this._dapperRepository = dapperRepository;
     this._categoryRelationshipsRepository = categoryRelationshipsRepository;
 }
コード例 #14
0
 public SysUserService(IRepository <SysUser> sysProperties,
                       IDapperRepository dapperRepository, ICacheManager cacheManagger
                       )
 {
     _repository       = sysProperties;
     _dapperRepository = dapperRepository;
     _cacheManagger    = cacheManagger;
 }
コード例 #15
0
 public ApplicationService(IOptions <AppSettings> config,
                           IGetWorkItems appService,
                           IDapperRepository logAnaliseService)
 {
     _config            = config.Value;
     _appService        = appService;
     _logAnaliseService = logAnaliseService;
 }
コード例 #16
0
ファイル: RoleAppService.cs プロジェクト: MetSystem/hero
 public RoleAppService(IRoleDomainService roleDomainService,
                       IDapperRepository <Domain.Roles.Role, long> roleRepository,
                       IPermissionDomainService permissionDomainService)
 {
     _roleDomainService       = roleDomainService;
     _roleRepository          = roleRepository;
     _permissionDomainService = permissionDomainService;
 }
コード例 #17
0
 public DayForecastService(DateTime startDate, DateTime endDate, DayForecastConfiguration dayForecastConfiguration, IDapperRepository<DayForecast> dapperRepository)
 {
     _startDate = startDate;
     _endDate = endDate;
     _dayForecastConfiguration = dayForecastConfiguration;
     _dapperRepository = dapperRepository;
     GenerateDateRangeCollection();
 }
コード例 #18
0
 public SiempresaAppService(IDapperRepository <Siempresa> dapperRepository, IMapper mapper, IUnitOfWorkDapper unitOfWork,
                            ISiempresaRepository siempresaRepository, ISitipempresaRepository sitipempresaRepository)
     : base(dapperRepository, mapper)
 {
     _uow = unitOfWork;
     _siempresaRepository    = siempresaRepository;
     _sitipempresaRepository = sitipempresaRepository;
 }
コード例 #19
0
ファイル: UserGroupAppService.cs プロジェクト: ligg/hero
 public UserGroupAppService(IUserGroupDomainService userGroupDomainService,
                            IDapperRepository <Domain.UserGroups.UserGroup, long> userGroupRepository,
                            IRoleDomainService roleDomainService)
 {
     _userGroupDomainService = userGroupDomainService;
     _userGroupRepository    = userGroupRepository;
     _roleDomainService      = roleDomainService;
 }
コード例 #20
0
 public DayForecastService(DateTime startDate, DateTime endDate, DayForecastConfiguration dayForecastConfiguration, IDapperRepository <DayForecast> dapperRepository)
 {
     _startDate = startDate;
     _endDate   = endDate;
     _dayForecastConfiguration = dayForecastConfiguration;
     _dapperRepository         = dapperRepository;
     GenerateDateRangeCollection();
 }
コード例 #21
0
 public AdminUniversityController(IQueryBus queryBus, ICommandBus commandBus,
                                  IUniversitySearch universityProvider, IDapperRepository dapperRepository)
 {
     _queryBus           = queryBus;
     _commandBus         = commandBus;
     _universityProvider = universityProvider;
     _dapperRepository   = dapperRepository;
 }
コード例 #22
0
        public DomainEvents_Tests()
        {
            Building(builder => { }).Ok();

            _blogRepository       = The <IRepository <Blog> >();
            _blogDapperRepository = The <IDapperRepository <Blog> >();
            _eventBus             = The <IEventBus>();
        }
コード例 #23
0
 public MenuManager(IDapperRepository <Menu, long> menuRepository,
                    IDapperRepository <Permission, long> permissionRepository,
                    IDapperRepository <RolePermission, long> rolePermissionRepository)
 {
     _menuRepository           = menuRepository;
     _permissionRepository     = permissionRepository;
     _rolePermissionRepository = rolePermissionRepository;
 }
コード例 #24
0
 public DapperRepositoryTests()
 {
     productDapperRepository       = Resolve <IDapperRepository <Product> >();
     productRepository             = Resolve <IRepository <Product> >();
     unitOfWorkManager             = Resolve <IUnitOfWorkManager>();
     productDetailRepository       = Resolve <IRepository <ProductDetail> >();
     productDetailDapperRepository = Resolve <IDapperRepository <ProductDetail> >();
 }
コード例 #25
0
 public FunctionManager(IDapperRepository <Function, long> functionRepository,
                        IDapperRepository <PermissionFunction, long> permissionFunctionRepository,
                        IDapperRepository <Permission, long> permissionRepository)
 {
     _functionRepository           = functionRepository;
     _permissionFunctionRepository = permissionFunctionRepository;
     _permissionRepository         = permissionRepository;
 }
コード例 #26
0
ファイル: PositionAppService.cs プロジェクト: feelhum/hero
 public PositionAppService(IPositionDomainService positionDomainService,
                           IDapperRepository <Domain.Positions.Position, long> positionRepository,
                           IDapperRepository <Domain.Department, long> departmentRepository)
 {
     _positionDomainService = positionDomainService;
     _positionRepository    = positionRepository;
     _departmentRepository  = departmentRepository;
 }
コード例 #27
0
 public RoleManager(IDapperRepository <Role, long> roleRepository,
                    IDapperRepository <UserRole, long> userRoleRepository,
                    IDapperRepository <RolePermission, long> rolePermissionRepository)
 {
     _roleRepository           = roleRepository;
     _userRoleRepository       = userRoleRepository;
     _rolePermissionRepository = rolePermissionRepository;
 }
コード例 #28
0
ファイル: PositionDomainService.cs プロジェクト: ligg/hero
 public PositionDomainService(IDapperRepository <Position, long> positionRepository,
                              IDapperRepository <Department, long> departmentRepository,
                              IDapperRepository <Organization, long> organizationRepository)
 {
     _positionRepository     = positionRepository;
     _departmentRepository   = departmentRepository;
     _organizationRepository = organizationRepository;
 }
コード例 #29
0
        public Transaction_Tests()
        {
            Building(builder => { }).Ok();

            _uowManager           = The <IUnitOfWorkManager>();
            _blogRepository       = The <IRepository <Blog> >();
            _blogDapperRepository = The <IDapperRepository <Blog> >();
        }
コード例 #30
0
 private readonly ICacheManager _cacheManager;                                                                                                                                                   //依赖注入缓存
 //private readonly SJMXAppServices _AppServices;
 public JDRQAppServices(IUnitOfWorkManager unitOfWorkManager, IDapperRepository <JDRQ, long> jdrqDapperRepository, ICacheManager cacheManager, IDapperRepository <STATS, long> DapperRepository) //, SJMXAppServices AppServices)
 {
     _unitOfWorkManager    = unitOfWorkManager;
     _jdrqDapperRepository = jdrqDapperRepository;
     _cacheManager         = cacheManager; // 依赖注入缓存
     _DapperRepository     = DapperRepository;
     //_AppServices = AppServices;
 }
コード例 #31
0
ファイル: ActionDomainService.cs プロジェクト: roy-wang/hero
 public ActionDomainService(IDapperRepository <Action, long> actionRepository,
                            IDapperRepository <OperationActionRelation, long> operationActionRelationRepository,
                            ILockerProvider lockProvider)
 {
     _actionRepository = actionRepository;
     _operationActionRelationRepository = operationActionRelationRepository;
     _lockerProvider = lockProvider;
 }