Brief Overview of Asp.Net Mvc
Overview Of MVC.
Asp.Net Mvc is a open source
latest framework for creating Web Application.Mvc pattern.Mvc is a
software architectural pattern,It divides a given software application
into three Main Components. Mvc is mainly for TestDriven Development that
means easily testable and Seperation of Concerns.'
MVC: MVC was created in 1979 and presented by
Trygve ReenSkaug originally named as “Thing-Model-View-Controller” but later
simplified to be known as MVC. First Used in Small talk-80 framework.
- Model: Model contains business logic.Model
Contains database records and Complex logic . It managing the data for the
application.
- View : View is the presentation layer which
user sees.
- Controller:In controller,Flow of Input and
Output controller. Input and Output logic.
Simple Terms: The model is the data, the
view is the window on the screen, and the controller is the glue between the two.
Advantages of MVC:
- It provides best support for Test-Driven Development.
- Suitable for Rapid Application Development.
- Loosely coupled.
- Easily maintanable and Scalable.
- Seperation of concerns .
- Extensable and Pluggable framework.
Asp.Net :
In Asp.net ,a single class used for displaying the user view and input and
output control logic as writes the automated test for application to test
individual page which makes more complex & you must initiate
all the page level controls in the application makes more strongly
binded.
Why Mvc?
Mvc framework pattern provides an large application to build
,maintain and testable easier than traditional asp.net.It makes an application
as loosely coupled.
Loosely coupled Architecture
promotes parallel development:
Developer can work on individual modules and integration is easy.Which
means one is work on view and other work on controller and model . it makes an
application easier to develop.
When to Choose Mvc?
When Developing an application in web devlopment using .Net ,must carefully
to choose the Frameworks.The Mvc framework doesnt Replace the Asp.net Web forms
models.
Mvc Framework application:
- Easier to manage the complexity Based application.
- it does'nt use Page controller pattern,which uses front controller pattern . By using Single controller we have navigate to Different Views .
- Support for TDD.
- Loosely Coupled with Dependency Injection.
Web-form Asp.net Application:
·
It support Event Model which preserves State over Http. Web form basesd
application makes large number of server controls in single page.
·
it works well for small team and support for rapid development application.
·
State management techinique provide state manage information easier.
·
Less complex application and it get tightly integrated with each form.Every
Aspx file contain aspx.cs file. which is Code Behind Pattern
·
Require Less code needed when compare to Mvc Model.
Dependency Injection in Mvc:
It also supports the use of
Dependency Injection (DI) and Inversion of Control (IOC) container models. DI
enables you to inject objects into a class, instead of relying on the class to
create the object itself.
Inversion Of Control:
IOC specifies that if an
object requires another object, the first objects should get the second object
from an outside source such as a configuration file. which makes testing
easier.
TDD
Unit testing is easily done
to have stable, robust and quality software solutions delivered continuously.
Mvc Is a Software Design
Pattern For developing Web Application.
Mvc Over Web Forms
·
MVC programming model is lighter compare to Asp.net Lightweight, Highly
Testable ,Integrated with Asp.net features.
Advantages
Comments
Post a Comment