We have advanced greatly with the implementation of the Tic-Tac-Toe web application, but when you restart the application all the user registration and application data is reset. This is due to the fact that we do not persist any data yet.
To persist data and be able to reload it when the application starts, you have to put it into some kind of persistent storage such as files (XML, JSON, CSV) or databases.
A database would be the best choice, since it provides better performance and more security when compared to simple file storage, which is why we are going to use it in the following examples.
Since ASP.NET 3.0 you can use an ORM framework called Entity Framework for accessing data in databases in a more productive and simple way. ASP.NET Core 2.0 works with a dedicated version of this framework called Entity Framework Core 2.
In this chapter, we will cover the following topics:
- Getting started with Entity Framework Core 2
- Working with...