Model in MVC:-
What is Model in MVC?
Model objects are the parts of the application that implement the domain logic, also known as business logic.
Domain logic handles the data that is passed between the database and the UI. For example, in an inventory system, the model keeps track of the items in storage and the logic to determine whether an item is in stock.
In addition, the model would be the part of the application that updates the database when an item is sold and shipped out of the warehouse. Often, the model also stores and retrieves model state in a database.
Model is responsible for many operations in asp.net application and few items are listed below:-
Model objects are the parts of the application that implement the domain logic, also known as business logic.
Domain logic handles the data that is passed between the database and the UI. For example, in an inventory system, the model keeps track of the items in storage and the logic to determine whether an item is in stock.
In addition, the model would be the part of the application that updates the database when an item is sold and shipped out of the warehouse. Often, the model also stores and retrieves model state in a database.
Model is responsible for many operations in asp.net application and few items are listed below:-
- Views are responsible to show the user state information ie. Model object data are showed in the UI screen. So model object is responsible to save the application/user state information.
- Model will notify the Views when objects state is changes. i.e any property values changes are notified to the view to updated the display information.
- All business logics are performed in the model object. Model act as a intermediate layer between Data access and UI layer.