This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:csharp [2024/12/08 03:30] – [entityframework (my beloved)] adam | dev:csharp [2025/06/07 07:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 81: | Line 81: | ||
install in your dev env: | install in your dev env: | ||
- | | + | |
install packages: | install packages: | ||
* Microsoft.EntityFrameworkCore.Design | * Microsoft.EntityFrameworkCore.Design | ||
* Npgsql.EntityFrameworkCore.PostgreSQL (or whatever you like) | * Npgsql.EntityFrameworkCore.PostgreSQL (or whatever you like) | ||
+ | |||
+ | dotnet-ef dbcontext scaffold " | ||
+ | |||
migrations: | migrations: | ||
- | | + | |
- | dotnet ef database update --connection " | + | dotnet ef database update --connection " |
- | + | ||
======= enum names ======= | ======= enum names ======= | ||