The slides in this week discuss the details of a simple online bookstore backed by a database (based on the one-to-many relationship) by using the following steps:
Create a new ASP.NET project by using the template .
Create MVC models,
which include two C# classes, Book.cs and Author.cs.
Add new by using the template , which help you quickly create controllers, views, and other items for your ASP.NET projects.
In the ,
Eenter the commands, which are used to create migration files that manage changes to your data model and database schema.
Enter the commands, which are used to apply database changes based on migrations.
The EF automatically generates database tables, which include two tables for the one-to-many relationship based on the model classes.
The EF automatically generates views.
Build and run the project and test the results on the browsers.