What is MVC Pattern?
Model View Controller. MVC
pattern seperates the GUI from the Data.
It is commonly used in ADO.NET programming in ASP.NET(example)
MVC in context with ADO.NET/ASP.NET
MVC pattern separates objects in to three important sections:-
Model: - This section is specially for maintaining data. It is actually where we write
code for database connectivity, methods of DataReader, DataAdapter, properties
for passing data and writing validations
eg: Business Access Layer class, Data Access Layer class.
View: - Design of the .aspx page (The markup or the presentation layer)
Controller: - They are event handling section which affects either the model or the view. (eg: .aspx.cs)
It is commonly used in ADO.NET programming in ASP.NET(example)
MVC in context with ADO.NET/ASP.NET
MVC pattern separates objects in to three important sections:-
Model: - This section is specially for maintaining data. It is actually where we write
code for database connectivity, methods of DataReader, DataAdapter, properties
for passing data and writing validations
eg: Business Access Layer class, Data Access Layer class.
View: - Design of the .aspx page (The markup or the presentation layer)
Controller: - They are event handling section which affects either the model or the view. (eg: .aspx.cs)
Difference
between a Layer and Tier?
Layer:
It refers to the separation of the logic (i.e the code and design) that is developed for an application in different files.
Tier:
It refers to the physical location of the Layer files.
Advantages of an MVC-Based Web Application
·
It makes it easier to manage complexity by dividing an application
into the model, the view, and the controller.
·
It does not use view state or server-based forms. This makes the
MVC framework ideal for developers who want full control over the behavior of
an application.
·
It uses a Front Controller pattern that processes Web application
requests through a single controller. This enables you to design an application
that supports a rich routing infrastructure. For more information
·
It provides better support for test-driven development (TDD).
·
It works well for Web applications that are supported by large
teams of developers and for Web designers who need a high degree of control
over the application behavior.
No comments:
Post a Comment