/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync( Microsoft.ApplicationInsights.WindowsCollectors.Metadata | Microsoft.ApplicationInsights.WindowsCollectors.Session); this.InitializeComponent(); this.Suspending += OnSuspending; using (var db3 = new RezervacijaDbContext()) { db3.Database.ApplyMigrations(); DefaultPodaciRezervacija.Initialize(db3); } using (var db1 = new LiceDbContext()) { db1.Database.ApplyMigrations(); DefaultPodaci.Initialize(db1); } /* using (var db2 = new FilmDbContext()) * { * db2.Database.ApplyMigrations(); * DefaultPodaciFilm.Initialize(db2); * } */ }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; using (var db = new KolekcijaDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } using (var db = new FilmDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } using (var db = new KorisnikDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } using (var db = new OcjenaDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; using (var db = new ZabavniParkDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; using (var db = new HotelDbContext()) { db.Database.Migrate(); DefaultPodaci.Initialize(db); } }
public App() { Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync( Microsoft.ApplicationInsights.WindowsCollectors.Metadata | Microsoft.ApplicationInsights.WindowsCollectors.Session); this.InitializeComponent(); this.Suspending += OnSuspending; using (var db = new RasporedIspitaPoSalamaDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } }
public App() { this.InitializeComponent(); this.Suspending += OnSuspending; ImeLogIn = ""; Mail = ""; Password = ""; using (var db = new KorisnikDbContext()) { db.Database.ApplyMigrations(); DefaultPodaci.Initialize(db); } }