public UnitOfWorkManager(IKunturContext context)
 {
     //http://www.entityframeworktutorial.net/code-first/automated-migration-in-code-first.aspx
     Database.SetInitializer(new MigrateDatabaseToLatestVersion<KunturContext, Configuration>(SiteConstants.Instance.MvcKunturContext));
     _context = context as KunturContext;
 }
Пример #2
0
 public EmailService(ILoggingService loggingService, ISettingsService settingsService, IKunturContext context)
 {
     _loggingService  = loggingService;
     _settingsService = settingsService;
     _context         = context as KunturContext;
 }
Пример #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="settingsService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="cacheService"></param>
 /// <param name="context"></param>
 public LocalizationService(ISettingsService settingsService, ICacheService cacheService, IKunturContext context)
 {
     _settingsService           = settingsService;
     _cacheService              = cacheService;
     _context                   = context as KunturContext;
     _perRequestLanguageStrings = ResourceKeysByLanguage(CurrentLanguage);
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"> </param>
 /// <param name="cacheService"></param>
 public SettingsService(IKunturContext context, ICacheService cacheService)
 {
     _cacheService = cacheService;
     _context      = context as KunturContext;
 }