mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-04-05 05:51:27 +02:00
417 B
417 B
EF Core database
Add migration project
options.UseSqlite("Data Source=dev-dotbased.db", c => c.MigrationsAssembly("PROJECT-NAME"));
EF Tool
Add migration
dotnet ef migrations add MIGRATION-NAME --project PROJECT-NAME
Remove migrations
dotnet ef migrations remove --project PROJECT-NAME
Update database
dotnet ef database update --project PROJECT-NAME