Пример #1
0
 public UserService(IUtilityService utilityService, IDataContextFactory dataContextFactory, IUtilityUserRoleService utilityUserRoleService, IRoleService roleService)
 {
     _commonDBContext        = dataContextFactory.CreateCommonDBContext();
     _utilityService         = utilityService;
     _utilityUserRoleService = utilityUserRoleService;
     _roleService            = roleService;
 }
Пример #2
0
        public ICommonDataBaseContext CreateCommonDBContext()
        {
            ICommonDataBaseContext dataContext = null;

            dataContext =
                new CommonDataBaseContext(
                    ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString);

            return(dataContext);
        }
Пример #3
0
 public NominationController(INominationService nominationService, Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory,
                             ICommonDbService commonDbService, IAwardService awardService, IReviewService reviewService, ILogger logger, ICustomDateService customDateService)
 {
     _nominationService        = nominationService;
     _commonDbContext          = commonDbService.GetCommonDataBaseContext();
     _encourageDatabaseContext = dataContextFactory.CreateEncourageDbContext();
     _awardService             = awardService;
     _reviewService            = reviewService;
     _textInfo          = new CultureInfo("en-US", false).TextInfo;
     _logger            = logger;
     _customDateService = customDateService;
 }
Пример #4
0
 public ReviewController(IResultService resultService, INominationService nominationService, ICommonDbService commonDbService, Encourage.DAL.Interfaces.IDataContextFactory dataContextFactory, IAwardService awardService,
                         IReviewService reviewService, IEmailNotificationOfWinner EmailNotificationOfWinner, ILogger logger, ICustomDateService customDateService)
 {
     _commonDbContext           = commonDbService.GetCommonDataBaseContext();
     _encourageDatabaseContext  = dataContextFactory.CreateEncourageDbContext();
     _awardService              = awardService;
     _reviewService             = reviewService;
     _nominationService         = nominationService;
     _resultService             = resultService;
     _emailNotificationOfWinner = EmailNotificationOfWinner;
     _logger            = logger;
     _customDateService = customDateService;
 }
 public UtilityUserRoleService(IDataContextFactory dataContextFactory)
 {
     _commmonDBContext = dataContextFactory.CreateCommonDBContext();
 }
Пример #6
0
 public Authorization(ICommonDataBaseContext commonDBContext)
 {
     _commonDBContext = commonDBContext;
 }
Пример #7
0
        //private readonly ICommonDataBaseContext _commonDBContxt;

        //public SkillSetService(IDataContextFactory dataContextFactory)
        //{
        //    _context = dataContextFactory.Create(ConnectionType.Ip);
        //}

        public SkillSetService(ICommonMapper commonMapper)
        {
            _commonMapper    = commonMapper;
            _commonDBContext = commonMapper.GetCommonDataBAseContext();
        }
Пример #8
0
 public SuperUserService(ICommonDataBaseContext commonDbContext)
 {
     _commmonDBContext = commonDbContext;
 }
Пример #9
0
 public HolidayService()
 {
     contextFactory = new DataContextFactory();
     context        = contextFactory.CreateCommonDBContext();
 }