Understand Model Basics in MVC 5

In this tutorial, you will learn:
1. Model Basics
2. Use of Model
3. How to Add a Model in MVC 5 Application

Model Basics

Model is nothing just a folder in your MVC Project that keeps classes relates to Database Management System. In simple word, all the class files which are responsible for accessing data from the database should be kept here. Later, the controller will use this class file for accessing data and rendering views.

Model is like a bridge between your application and Databases.
Controllers send signal to Model for Data Model executes the class file and fetch data from the database and return to Controller Controller then Present this Data to the user using View Pages.

In the few previous chapters, you learned how to Add Views and Controllers in MVC 5 application and in this section you will learn how to work with Model in MVC 5. After completing this section you will be able to store and retrieve a record from the database using Model.

In this section, you are going to learn following chapters.
1. Adding a Model
2. Insert, Update, Delete without Entity Framework
3. Insert, Update, Delete using Entity Framework
4. Scaffolding Example


This chapter just keeps a short introduction to Model and as I believe that you will actually learn it when you will do real practice. In the next chapter, you will learn How to Add a Model in ASP.NET MVC 5 Application.


Share your thought