Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009
-
Upload
goodfriday -
Category
Technology
-
view
517 -
download
1
description
Transcript of Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009
![Page 1: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/1.jpg)
![Page 2: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/8.jpg)
Introducing DomainDataSource
demo
![Page 9: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/11.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/13.jpg)
Dynamic Data with DomainDataSource
demo
![Page 14: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/14.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/15.jpg)
Use in Regular Pages
demo
![Page 16: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/16.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/18.jpg)
Into the Cloud!
demo
![Page 19: Microsoft ASP.NET 4.0 Data Access: Patterns for Success with Web Forms Saturday, March 21, 2009](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/19.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/20.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/21.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022062705/556a7789d8b42a7c758b489f/html5/thumbnails/22.jpg)
© 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.