Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What does model mean in model-view-controller?


Asked by Emmaline Huang on Dec 08, 2021 FAQ



In the Model-View-Controller pattern, the term Model refers to objects which represent the data in the application. Often, model objects correspond to tables in your database, but they don't have to. Controller action methods which return an ActionResult can pass a model object to the view.
Also Know,
In object-oriented programming development, model-view-controller (MVC) is the name of a methodology or design pattern for successfully and efficiently relating the user interface to underlying data models.
In addition, Model View Controller (MVC) Definition - What does Model View Controller (MVC) mean? Model View Controller (MVC) is a design pattern for computer software. It can be considered an approach to distinguish between the data model, processing control and the user interface.
Subsequently,
MVC is the separation of model, view and controller — nothing more, nothing less. It's simply a paradigm; an ideal that you should have in the back of your mind when designing classes.
In fact,
The child view controller is the only view controller in charge of managing the views of its view hierarchy. In other words, the container view controller should only access the child view controller's view. It has no business interacting with other views in the child view controller's view hierarchy.