Introducing Dynamic Data DemosRoadmap Feedback and Q&A.

Post on 12-Jan-2016

223 views 0 download

Tags:

Transcript of Introducing Dynamic Data DemosRoadmap Feedback and Q&A.

Developing Data Driven Web Applications Using ASP.NET Dynamic DataDavid EbboArchitectMicrosoft Corporation

Session Summary

Introducing Dynamic DataDemosRoadmapFeedback and Q&A

Dynamic Data Overview

Easily create powerful data-driven web apps

Get a running app in under a minute!Unleash the power of the schemaCustomizable and reusable

The traditional approach

Create your modelCreate ASP.NET pagesAdd data controls and data source controlsAdd validation logic in the pageIssues:

Fair bit of work to get startedLogic lives in the wrong placeIgnores valuable schema informationReuse and customization is difficult

The Dynamic Data approach

Create your modelInstantly get a fully functional app!

Customize the app piece by piece:ModelFieldsPagesRoutes

Getting started

demo

Annotating the model

Metadata on model drives the behaviorDefault metadata inferred from schema

Data types and relationshipsRequired fields, string length, …

Add additional metadataValidationField labels and descriptionsPartial methods

Annotating the model

demo

Field templates

Fields are rendered using templatesSelected based on field data typeHandle rendering, data binding and validation

Template selection can be overriddenSimple ascx files that can easily be reused across projects

Field templates

demo

Customizing pages

Page templatesAffect shared behavior across tables

Custom pages for individual tablesChoose the column setCustomize the rendering

Customizing pages

demo

Routing

Determines how external URLs map to application pagesNew ASP.NET featureAlso used by ASP.NET MVC

Routing

demo

Dynamic Data and MVC

Initial release targets web formsLater release will include MVC supportSame concepts apply

Model metadataPage templatesField templates

Dynamic Data and MVC

demo

Final thoughts

Try the 3.5 Extensions Preview todayNew build coming up in a few weeksForum: http://forums.asp.net/1145.aspxBlogs:

http://blogs.msdn.com/davidebb/http://blogs.msdn.com/scothu/http://blogs.msdn.com/marcinon/

Q&A

For additional Q&A, go to Open Space area in the Sandbox

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