Interviews3 answers
What is Model in MVC ?
3 Answers
Model is the business logic contained in the project in the form of a class. A Model class contains properties and other variables which can be utilized in generating a VIEW with all the CRUD related information for objects contained. Database connections can also be established in MODEL with database first approach of creating a model. It will create ORM to work with Database as a CLASS.
Sai Hariharan KrishnakumarPosted Aug 7, 2017, 11:00 PM EDT
model is nothing but just class
Ravi PatelPosted Dec 29, 2015, 10:59 PM EST
Many people get confuse about that what is actually the Model in MVC framework. I tell you this is just a class nothing more than that. You need to write the classes altogether only to make it a Model which in-turns works with the controller to display the view as per required input.
Model used by :
Users - What data will they be interacting with? and
MVC
- Input controls
-Display formatting
-Validations
Arvind NigamPosted Dec 14, 2015, 2:08 AM EST
