December 2019
Intermediate to advanced
510 pages
11h 33m
English
The last step in implementing data access using EF Core is to connect a DbContext instance to the database and run the migrations using the command exposed by the .NET CLI. Before doing that, we need to have a working database in our local environment. To keep our local development environment as lightweight as possible, this example will use a Docker image of Microsoft SQL Server on Linux. It is possible to get the Docker image here: https://hub.docker.com/r/microsoft/mssql-server-linux/. If you don't have any previous experience with Docker, you can follow this guide to install and set it up on your local machine: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-2017.