mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-02-22 14:45:02 +01:00
.. | ||
Models | ||
Repositories | ||
AuthorityContext.cs | ||
DotBased.AspNet.Authority.EFCore.csproj | ||
Extensions.cs | ||
README.md |
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