microsoft asp.net 4.0 data access: patterns for success with web forms

22

Upload: goodfriday

Post on 22-Nov-2014

1.854 views

Category:

Technology


1 download

DESCRIPTION

Come learn about some cool new data access features for ASP.NET 4.0 Web Forms and beyond. Hear how a new Domain Data Source makes it easy to cleanly change your application's architecture from 2-tier to 3-tier and how a new query block lets you unleash the power of LINQ. Also hear about new Dynamic Data features like richer support for LINQ to Entities as well as how to use the ASP.NET data stack to target Windows Azure.

TRANSCRIPT

Page 1: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms
Page 2: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web FormsDavid [email protected] ArchitectMicrosoft Corporation

Page 3: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Session Objectives

ASP.NET WebForms vs. ASP.NET MVCIntroducing DomainDataSourceFire it up with Dynamic DataTaking the experience into the Azure Cloud

Page 4: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

WebForms: Alive and Well!

ASP.NET MVC has just been releasedWebForms development continues in parallelLong live both of them!

Page 5: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Data Source History lesson

1.0: No data sources2.0: ObjectDataSource3.5: LinqDataSource3.5 SP1: EntityDataSourceFuture: DomainDataSource

Page 6: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Using LinqDataSource/EF

ASP.NET Page

Linq To SQL / EF

Page 7: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Using DomainDataSource

ASP.NET page

Domain service(aka business layer)

Linq to SQL/EF

Page 8: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Introducing DomainDataSource

demo

Page 9: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

What is Dynamic Data

Powerful way to build data-driven sitesGet started quickly using scaffoldingMuch more than scaffolding!Fully customizableValidation and business rules on modelPowerful filteringFlexible URL routing

Page 10: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Better with DomainDataSource

Use Dynamic Data with DomainDataSourceBest of both world

All the power of Dynamic DataAll the control of DomainService

Page 11: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

DD with LinqDataSource/EF

Dynamic Data

Linq to SQL/EF

Page 12: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

DD with DomainDataSource

Dynamic Data

Domain service(aka Business Layer)

Linq to SQL/EF

Page 13: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Dynamic Data with DomainDataSource

demo

Page 14: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Improve ‘regular' aspx Pages

Scenario: Reduce code in regular pagesValidation

Validation in data model instead of individual pages. Change in one place affects entire site

Field templatesAdd custom controls in one place instead of in each of your pagesEnable custom controls on model

Page 15: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Use in Regular Pages

demo

Page 16: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Taking it all into the Azure Cloud

Write simple entity classesWrite a Domain Service using simple data APIsUse Domain Data SourceUsing Azure Table Storage

Flexible entitiesApplies both to Dynamic Data and standard pages.

Page 17: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Azure Table Storage

ASP.NET

Domain Service(aka Business Layer)

Simple Azure Cloud API

Page 18: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Into the Cloud!

demo

Page 19: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Key Takeaways

ASP.NET WebForms vs. ASP.NET MVCIntroducing DomainDataSourceFire it up with Dynamic DataTaking the experience into the Azure Cloud

Page 20: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Call to action

Get the latest bits on http://www.asp.net/dynamicdata/Discuss on http://forums.asp.net/1145.aspxEmail me at [email protected]

Page 21: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

Please Complete an Evaluation FormYour feedback is important!

Evaluation forms can be found on each chairTemp Staff at the back of the room have additional evaluation form copies

Page 22: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms

© 2009 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.