Explain Model in MVC?

Category: C SharpExplain Model in MVC?
Editor">Editor Staff asked 2 years ago

Explain Model in MVC?

1 Answers
Editor">Editor Staff answered 2 years ago

The model represents the data, and does nothing else. The model does NOT depend on the controller or the view. The MVC Model contains all application logic (business logic, validation logic, and data access logic), except pure view and controller logic. With MVC, models both hold and manipulate application data.
 
The Models Folde
 
The Models Folder contains the classes that represent the application model.
 
Visual Web Developer automatically creates an AccountModels.cs file that contains the models for application security.