public UserService(IUtilityService utilityService, IDataContextFactory dataContextFactory, IUtilityUserRoleService utilityUserRoleService, IRoleService roleService) { _commonDBContext = dataContextFactory.CreateCommonDBContext(); _utilityService = utilityService; _utilityUserRoleService = utilityUserRoleService; _roleService = roleService; }
public ICommonDataBaseContext CreateCommonDBContext() { ICommonDataBaseContext dataContext = null; dataContext = new CommonDataBaseContext( ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString); return(dataContext); }
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; }
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(); }
public Authorization(ICommonDataBaseContext commonDBContext) { _commonDBContext = commonDBContext; }
//private readonly ICommonDataBaseContext _commonDBContxt; //public SkillSetService(IDataContextFactory dataContextFactory) //{ // _context = dataContextFactory.Create(ConnectionType.Ip); //} public SkillSetService(ICommonMapper commonMapper) { _commonMapper = commonMapper; _commonDBContext = commonMapper.GetCommonDataBAseContext(); }
public SuperUserService(ICommonDataBaseContext commonDbContext) { _commmonDBContext = commonDbContext; }
public HolidayService() { contextFactory = new DataContextFactory(); context = contextFactory.CreateCommonDBContext(); }