Wednesday 5 August 2015

ASP.Net MVC Models


The term model refers to a set of objects that implements a piece of functionality.


It implements the critical functionality of an application from business point of view.Often model objects retrieve and store model state in a database. Set of classes that describes the data we are working with as well as the business rules for how the data can be changed and manipulated

The model encapsulates the business rules and validation concerns.

There are 3 types of models:
  • Data Model : The objects here represents the class that interacts with db.
  • Business Model :Normally implement functionality that represents business rules
  • View Model : These provide information passes -in from controllers to views.

No comments:

Post a Comment