Skip to content

Commit 3d96c12

Browse files
clemensottSanders Lauture
authored andcommitted
added details to database readme
1 parent e362799 commit 3d96c12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/database.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ We use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/) with S
66

77
1. Add or remove properties in the model classes.
88
2. Open the Package Manager Console in Visual Studio
9-
3. Ensure the default project is selected as `Signal-Windows.Lib` as this is where the DbContext classes are.
10-
4. Run `Add-Migration <migration name> -Context <DbContext class>`. Typically `migration name` is just the number of the migration (m4, m5, m6, etc.). `DbContext class` is the class name of the DB we're migrating. Most migrations are to `SignalDBContext` but `LibsignalDBContext` is also valid.
11-
5. Debug the app to ensure the migration runs successfully. Migrations are triggered [here](https://github.com/signal-csharp/Signal-Windows/blob/55598a6bdf57ce22f48fc18bc587b257122115a0/Signal-Windows/App.xaml.cs#L60-L61) as soon as the app is started up.
9+
3. Ensure the default project in the Package Manager Console is selected as `Signal-Windows.Lib` as this is where the DbContext classes are.
10+
4. Ensure the startup project is selected as `Signal-Windows` as this is the main application.
11+
5. Run `Add-Migration <migration name> -Context <DbContext class>`. Typically `migration name` is just the number of the migration (m4, m5, m6, etc.). `DbContext class` is the class name of the DB we're migrating. Most migrations are to `SignalDBContext` but `LibsignalDBContext` is also valid.
12+
6. Debug the app to ensure the migration runs successfully. Migrations are triggered [here](https://github.com/signal-csharp/Signal-Windows/blob/55598a6bdf57ce22f48fc18bc587b257122115a0/Signal-Windows/App.xaml.cs#L60-L61) as soon as the app is started up.

0 commit comments

Comments
 (0)