Up until this point, data for our programs has been stored in our computers' RAM, also known as random-access memory. This is a fast, temporary place to store information but it's not suitable for long-term storage.
Anything we want to save after halting our applications must be written to permanent storage on a hard disk. Starting in this section, we will begin using databases that will permanently store our data.
During the first part of the section, we'll learn how relational databases work and experiment with the SQL language to read, write, and query databases. We'll cover how to configure our own databases using tools including MySQL Workbench and MySQL Community Server. We'll build our database methods from scratch so we can see how an ORM (Object-Relational Mapping) tool works under the hood.
During the second part of the section, we'll use an ORM library called Entity Framework Core to make working with a database much easier. This will take care of the boilerplate code for us so we can focus on coding our applications.
At the end of this section, you will complete an independent project. Your code will be reviewed for the following objectives:
.gitignore
file and is not to be tracked by Git, and includes instructions on how to create the appsettings.json
and set up the project.Additionally, the following objectives from previous sections will continue to apply: