/xLib-WebApp

Primary LanguageC#MIT LicenseMIT

xLib

Container

Create Container

nerdctl compose -f .\container\xLib-compose.yml --env-file .\container\dbcredentials.env up -d

Stop Container

nerdctl compose -f .\container\xLib-compose.yml --env-file .\container\dbcredentials.env down

Migration

If you would like to use Postgres Server, you will need to update WebUI/appsettings.json as follows:

"UseInMemoryDatabase": false,

Add New Migration

dotnet ef migrations add "InitialMigration" --project .\src\xLib.Infastructure --startup-project .\src\xLib.WebApp --output-dir Persistence\Migrations

Revert Migration

dotnet ef migrations remove --project .\src\xLib.Infastructure --startup-project .\src\xLib.WebApp