//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)); }
public UserLoginRepository(ApplicationDbContext applicationDbContext, ISessionProviderService sessionProviderService) { _applicationDbContext = applicationDbContext; }