Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Presentation
What is MVC?
MVC on the web today
ASP.NET MVC
Timeline
Comparison with ASP.NET web forms
What web forms does well
Where web forms doesn’t fit
ASP.NET MVC believes
Should you fear ASP.NET MVC?
The MVC pattern
Model
View
Controller
What’s new in ASP.NET MVC 3
Demos
Q&A
3
What is MVC?
Ruby on Rails
Django and Python
Spring, Struts and Java
Zend Framework and PHP
MonoRail
…
September
March 2009 March 2010
• ScottGu sketched 2007 • First Community • ASP.NET MVC • ASP.NET MVC 3.0
out the core of Technology source code was • Shipped with
ASP.NET MVC • Presenstation of Preview • ASP.NET MVC 1.0 released under the • ASP.NET MVC 2.0
Visual Studio
(~100 lines of Scalene at the MS-PL • Shipped with 2010
code) Austin ALT.NET Visual Studio
conference 2010
February 2007 December 2007 April 2009 January 2011
8
What web forms does well
Guiding tenets:
Be extensible, maintainable, and flexible
Be testable
Get out of the user’s way when necessary
Serving methods, not files
Separation of concerns
ScottHa said: « ASP.NET MVC is Web Forms unplugged »
13
The MVC pattern
Model
objects are the parts of the
application that implement the
logic for the application’s data
domain
View
components that display the
application’s user interface
Controller
components that handle user
interaction, work with the model,
and ultimately select a view to
render
18
What’s new in ASP.NET MVC 3
20
Book store
Using the ASP.NET MVC 3 template and playing around with Razor
First data access and display a list of authors
Manage authors
Display a list of books
Create and edit a book using the ViewModel pattern
22
23