Api Migrations
This commit is contained in:
parent
fb97a64ac7
commit
cd74619870
8 changed files with 1379 additions and 0 deletions
22
README.md
22
README.md
|
|
@ -1 +1,23 @@
|
|||
# InkForge
|
||||
|
||||
## Modifying EF Model
|
||||
|
||||
Apply Migrations for Notes-Database (`InkForge.Data`) or Identity-Database (including Workspaces, `InkForge.Api.Data`)
|
||||
|
||||
**InkForge.Data**:<br>
|
||||
```
|
||||
dotnet ef migrations add <Name> \
|
||||
--startup-project design/InkForge.Migrations/ \
|
||||
--project shared/migrations/InkForge.Sqlite/ \
|
||||
-c InkForge.Data.NoteDbContext -- \
|
||||
--DbProvider Sqlite --connectionstrings-defaultconnection "Data Source=:memory:"
|
||||
```
|
||||
|
||||
**InkForge.Api.Data**:<br>
|
||||
```
|
||||
dotnet ef migrations add <Name> \
|
||||
--startup-project design/InkForge.Migrations/ \
|
||||
--project migrations/InkForge.Api.Sqlite \
|
||||
-c InkForge.Api.Data.ApiDbContext -- \
|
||||
--DbProvider Sqlite --connectionstrings-defaultconnection "Data Source=:memory:"
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue