- To install the database image and build the SQL Server container.
- $ docker-compose up
- dotnet ef --startup-project ../CustomerRegistration.API/ database update
- To create a new migration run the command below in the terminal in the path "src/CustomerRegistration.Infrastructure".
- dotnet ef --startup-project ../CustomerRegistration.API/ migrations add initial -c CustomerRegistrationContext --msbuildprojectextensionspath local/obj -v
- dotnet ef --startup-project ../CustomerRegistration.API/ database update