Skip to content
This repository was archived by the owner on Oct 3, 2022. It is now read-only.

Commit 01143b8

Browse files
committed
mainwindow
1 parent cc58476 commit 01143b8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
431 KB
Binary file not shown.

.vs/TakeMyTime.NETCore/v16/.suo

0 Bytes
Binary file not shown.

TakeMyTime.WPF/MainWindow.xaml.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ private void InitDataDirectory()
6767

6868
private void ApplyMigrations()
6969
{
70-
TakeMyTimeDbContext context = new TakeMyTimeDbContext();
71-
context.Database.Migrate();
70+
using (TakeMyTimeDbContext context = new TakeMyTimeDbContext())
71+
{
72+
context.Database.Migrate();
73+
}
7274
}
7375

7476
#region GUI Events
@@ -154,7 +156,7 @@ public void NavigateToDashboardOverview()
154156
{
155157
fr_Content.Navigate(new Dashboard());
156158
}
157-
159+
158160
public void NavigateToProjectTypes()
159161
{
160162
fr_Content.Navigate(new ProjectTypeOverview());

0 commit comments

Comments
 (0)