+ All Categories
Home > Technology > Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

Date post: 31-May-2015
Category:
Upload: goodfriday
View: 517 times
Download: 1 times
Share this document with a friend
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.
Popular Tags:
22
Transcript
Page 1: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009
Page 2: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

Introducing DomainDataSource

demo

Page 9: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

Dynamic Data with DomainDataSource

demo

Page 14: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

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 Saturday, March 21, 2009

Use in Regular Pages

demo

Page 16: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

Into the Cloud!

demo

Page 19: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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 Saturday, March 21, 2009

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


Recommended