Summary
In this chapter, we learned what a model is and how it fits in the ASP.NET MVC application. Then, we created a simple model, built model data in a controller, passed the model to the view, and showed the data using the view. We have learned about the models specific to a view and have discussed the flow of the data with respect to models. We learned about Entity Framework, an ORM framework from Microsoft, and how it simplifies database access from your .NET application. We have created a simple console application where we have inserted, updated, and deleted records. Finally, we have built an ASP.NET Core application that uses model, ViewModel, and Entity Framework.