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

Post on 22-Nov-2014

1.854 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

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

Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web FormsDavid Ebbodavid.ebbo@microsoft.comSoftware ArchitectMicrosoft Corporation

Session Objectives

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

WebForms: Alive and Well!

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

Data Source History lesson

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

Using LinqDataSource/EF

ASP.NET Page

Linq To SQL / EF

Using DomainDataSource

ASP.NET page

Domain service(aka business layer)

Linq to SQL/EF

Introducing DomainDataSource

demo

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

Better with DomainDataSource

Use Dynamic Data with DomainDataSourceBest of both world

All the power of Dynamic DataAll the control of DomainService

DD with LinqDataSource/EF

Dynamic Data

Linq to SQL/EF

DD with DomainDataSource

Dynamic Data

Domain service(aka Business Layer)

Linq to SQL/EF

Dynamic Data with DomainDataSource

demo

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

Use in Regular Pages

demo

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.

Azure Table Storage

ASP.NET

Domain Service(aka Business Layer)

Simple Azure Cloud API

Into the Cloud!

demo

Key Takeaways

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

Call to action

Get the latest bits on http://www.asp.net/dynamicdata/Discuss on http://forums.asp.net/1145.aspxEmail me at david.ebbo@microsoft.com

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

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

top related