Asp.net mvc 3 - eco 2010

Post on 13-Dec-2014

1.399 views 9 download

description

 

Transcript of Asp.net mvc 3 - eco 2010

Conhecendo o ASP.NET MVC e as

novidades da versão 3

José Lino Neto@joselinonetocontato@joselino.nethttp://joselino.net

Alliston Carlos@allistoncarlosalliston@live.comhttp://alliston.wordpress.com

Objetivos dessa sessão

• Como funciona o ASP.NET MVC?• E o que seria MVC?

• É o fim dos WebForms?

• ASP.NET MVC 2 Stable• ASP.NET MVC 3 Release Candidate

Caminhos a seguir

ASP.NET Antes

Caching Modules

HandlersIntrinsics

Pages Controls

Globalization

Profile

Master Pages

MembershipRoles

Etc.

ASP.NET

Um framework web que engloba quasetudo.

Master Page

Control

Control

Não há reais regras de responsabilidades

ApresentçãoLógica da apresentaçãoRegras negócioAcesso a Dados

Quem faz o que?Como e quando?

Control

ControlPage

Control

Control

Control

Control

Abstração de controles pode ser negativo.

Lógica UI

Não é simples de testar

ASP.NET Agora

ASP.NETDynamic Data

ASP.NETWebForms

ASP.NETMVC

Apresentação

ExecuçãoASP.NET

Core

WebForm é ótimo, mas opções são

legais…

MVC = Model-View-Controller

Controller(Input)

Model(Logic)

View(Presentation)

Separação dos conceitos

Como funciona o MVC?

Request

View

Controller

Response

ControllerRecebe Entradas dos Usuários(HTTP requests)

ViewRepresentaçãoVisual dosModelos

URL agora limpa

Não se perca em…

/Produtos.aspx?ProdutoID=123

Quando facilmente pode ter…

/Produto/Detalhes/123

Ou então o que melhor fizer sentido durante uma migração

DEMO

ASP.NET MVC 2

O que há de novo no ASP.NET MVC 3 RC

só exemplos...;-)

Minha apresentação...

Recursos Download ASP.NET MVC 3 Preview 1

Binaries: http://bit.ly/ahs64M Source: http://aspnet.codeplex.com/releases/view/50092

Blogs http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-

asp-net-mvc-3-preview-1.aspx http://bradwilson.typepad.com/blog/2010/07/service-location-

pt1-introduction.html Podcasts / Videos

Scott Hanselman: http://bit.ly/9bJ0JP Hanselminutes with Phil Haack: http://bit.ly/dxRTxG

www.asp.net and http://forums.asp.net

Apoio

Agradecimentos

Patrocinadores

Realização

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after

the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

www.devgoias.net

José Lino Neto@joselinonetocontato@joselino.nethttp://joselino.net

Alliston Carlos@allistoncarlosalliston@live.comhttp://alliston.wordpress.com