Ejemplo n.º 1
0
        private void ConfigureServices(IServiceCollection services)
        {
            var sqliteConnectionString = ConfigurationUtil.GetConnectionString("Sqlite");

            services.AddDbContext <AppDbContext>(o => o.UseSqlite(sqliteConnectionString));
            services.AddSingleton(typeof(MainWindow));
            services.AddSingleton(typeof(LoginWindow));
        }