InkForge/README.md
2024-02-07 22:41:27 +01:00

745 B

InkForge

Modifying EF Model

Apply Migrations for Notes-Database (InkForge.Data) or Identity-Database (including Workspaces, InkForge.Api.Data)

InkForge.Data:

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:

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:"