Esempio n. 1
0
        //NOTE: This should be used by AutoFac for DI
        public ApplicationDbContext(ISessionProviderService sessionProviderService) : base(ConfigurationManager.AppSettings["DefaultConnection"])
        {
            string connection = ConfigurationManager.AppSettings["DefaultConnection"];

            _sessionProviderService = sessionProviderService;

            SetCommandTimeOut();


            //System.Data.Entity.Infrastructure.Interception.DbInterception.Add(new ActivityTrackerInterceptor(sessionProviderService));
        }
Esempio n. 2
0
 public UserLoginRepository(ApplicationDbContext applicationDbContext, ISessionProviderService sessionProviderService)
 {
     _applicationDbContext = applicationDbContext;
 }