The purpose of this repo is to define the pros and cons for containerising an Entity Framework Migrations vs Database dacpac solution. Each version has a simple API and database in docker containers.
- Download Docker Desktop, install and log in to the application
- To clone the repo and run the game
$ git clone https://github.com/adrianeyre/api-sql-container
$ cd api-sql-container
- Open folder
/EntityFrameworkMigrationsExample
- Load the application
ApiSQLContainer.sln
- Set the start up project to
docker-compose
- Open folder
/DacPacExample/API
- Load the application
DacPacApiExample.sln
- Set the start up project to
docker-compose
- Navigate to
https://localhost:44325/api/products
- Navigate to
https://localhost:44325/api/books
- Open
SQL Server Management Studio (SSMS)
- Login Credetials
Server Name: 127.0.0.1,1433
Authentication: SQL Server Authentication
Login: sa
Password: SecureP4ssW0rd