Ejemplo n.º 1
0
        public App()
        {
            InitializeComponent();
            SplashFactory = (e) => new Views.Splash(e);

            #region app settings

            // some settings must be set in app.constructor
            var settings = SettingsService.Instance;
            RequestedTheme             = settings.AppTheme;
            CacheMaxDuration           = settings.CacheMaxDuration;
            ShowShellBackButton        = settings.UseShellBackButton;
            AutoSuspendAllFrames       = true;
            AutoRestoreAfterTerminated = true;
            AutoExtendExecutionSession = true;

            #endregion

            using (var EFR = new EFRepositoryContext())
            {
                EFR.Database.Migrate();
            }

            UWPFolder    folder = new UWPFolder();
            EFRepository EFRepo = new EFRepository();
            HockeyClient.Current.Configure("439e0c88350044518bc86c583b8640c6");

            ServCon = ServicesController.Instance;
            if (false == ServCon.IsConfigured)
            {
                ServCon.Configure(EFRepo, folder);
            }
        }
Ejemplo n.º 2
0
 public BarRepository(EFRepositoryContext <BarModel, Guid, TestDbContext> repositoryContext) : base(
         repositoryContext)
 {
 }
Ejemplo n.º 3
0
 public FooRepository(EFRepositoryContext <FooModel, Guid, TestDbContext> repositoryContext) : base(
         repositoryContext)
 {
 }
Ejemplo n.º 4
0
 public TestRepository(EFRepositoryContext <TestModel, Guid, TestDbContext> repositoryContext) : base(
         repositoryContext)
 {
 }