Thursday 26 April 2018

What Is MVC?

MVC stands for model view controller
MVC is a pattern which is used to split or divide the application into three components: models, views, and controllers.
The MVC model defines applications with 3 logic layers, they are
  • The business layer (Model )
  • The display layer or Presentation layer (View )
  • The input control (Controller )
Model :( application data and logic)
The Model is used to represent the application data ,model objects can retrieve data (and store data) from a database.

View: (User Interface)
The View is used to display of the data and you can design your application using view 


Controller: (business logic) 
The Controller is the part of the application that handles user interaction .
Controllers read data from a view, control user input, and send input data to the model...
Note:
Model:database connectivity
View:designing(UI)
Controller:coding(business logic)

Advantages of MVC over ASP.NET

Provides a clean separation of concerns among UI (Presentation layer), model (business layer) and the input control (Controller)

Easy to unit test (testing is easy). 

Improved reusability of model and views. We can have multiple views which can point to the same model and vice versa. 



1 comment:

  1. Python is an open-source, high level, interpreted programming language which offers great opportunities for object-oriented programming. Choosing a python training program from Red Prism Group, which is best training institute for python in noida.

    ReplyDelete

apply function in R

1) apply function: It takes 3 arguments matrix,margin and function.. Example: m<-matrix(c(1,2,3,4),nrow=2,ncol=2) m #1 indicates it is ap...