11 December 2013

What is the MVC design pattern in Salesforce.com?

Model-View-Controller (MVC) design pattern is the one of the most popular design pattern which contains three modules.
  • Model
  • View
  • Controller
Model : 
        
What schema and data does sales force uses to represent the system completely.
- In salesforce, we can say that sObjects are the model.
Ex : Sobjects,Apex classes.

View :
 
- How the schema and data is represented. Visual force is used to present the data to users.
Ex : pages,Components.

Controller :

- How the interface actions is represented.
- Controllers used to perform operations/actions whenever users interact with Visual force.
Ex : Standard, Custom (Apex).

No comments:

Post a Comment