The Wayback Machine - https://web.archive.org/web/20100627061835/http://www.asp.net:80/dynamicdata

Microsoft ASP.NET Dynamic Data

 

ASP.NET Dynamic Data provides a framework that enables you to quickly build a functional data-driven application, based on a LINQ to SQL or Entity Framework data model. It also adds great flexibility and functionality to the DetailsView, FormView, GridView, and ListView controls in the form of smart validation and the ability to easily change the display of these controls using templates.

Dynamic Data is part of the .NET Framework version 3.5 SP1 release.

Download .NET 3.5 SP1 | Samples | Discuss in Forums | MSDN Documentation

 
 

Introduction to ASP.NET Dynamic Data

ASP.NET Dynamic Data brings major usability and RAD development changes to the existing ASP.NET data controls. RAD development is significantly increased by the use of a rich scaffolding framework. After you add a LINQ to SQL or Entity Framework data model to a project, you can simply register it with Dynamic Data. The result is a fully functional Web site. Full CRUD (create, read, update, and delete) operations are supported. The site includes filtering by foreign keys and Boolean fields; foreign keys are automatically converted to their friendly names. Smart validation is automatically available, which provides validation based on database constraints for nullable fields, data type, and field length.

The DetailsView and GridView controls have been extended to display fields by using templates instead of by using hard-coded rules that are programmed in the controls. These templates are part of the project, and you can customize them to change their appearance or to specify which controls they use for rendering. This makes it very easy to make a change in one place in your site that specifies how to present dates for editing, as one example. FormView and ListView controls can implement similar behavior by using a DynamicControl object in their templates and by specifying which field in the row to display. Dynamic Data will then automatically build the UI for these controls based on the templates that you specify.

Validation is significantly improved in the controls as well. The controls read metadata for a LINQ to SQL or Entity Framework data model and provide automatic validation based on the model. For example, if a column in the database is limited to 50 characters, and if a column is marked as not nullable, a RequiredFieldValidator control is automatically enabled for the column. (The controls also automatically support data-model-level validation.) You can apply other metadata to take further control over display and validation.

We have received many reports from people usng the RTM release of Dynamic Data encountering some errors when using it with Entity Framework. This problem occurs with certain types of data relationships and typically generates an error that looks similar to: "A property with name 'XX.Id' does not exist in metadata for entity type 'XX.XX.XXXX'. An update to .NET 3.5 SP1 has been released that corrects these issues, please see KB959209 which contains the update. Here is a direct link to the knowledge base article: http://support.microsoft.com/kb/959209

 
 

Partners

Many component vendors who build custom ASP.NET controls are already working on enhancing their control toolkits to take advantage of Dynamic Data. For example, Peter Blum is starting a beta program for a version of his Data Entry Suite that takes full advantage of Dynamic Data. Telerik, the company that makes the RadControls for ASP.NET AJAX suite, has made custom field template controls that take advantage of Telerik controls. The company is also working on integrating Dynamic Data into their grid control. LLBLGen is a third party O/R mapper that can be used instead of Linq to SQL or the Entity Framwork and are working on support for Dynamic Data. Infragistics, the company that makes the NetAdvantage for ASP.NET suite has made custom field templates for their controls and is working on Dynamic Data support for their grid. FarPoint Technologies has produced a version of their 'Spread for ASP.NET' control using the Dynamic Data framework.

 
 

ASP.NET Dynamic Data Preview on CodePlex

Dynamic Data Preview on CodePlex contains many ideas that the Dynamic Data team is considering for the next release of Dynamic Data. This preview contains many features that will be part of Dynamic Data in the .NET Framework 4.0, including the QueryExtender control for filtering data provided by the LinqDataSource control; entity templates that make it easier to customize how data is displayed; filter templates that let you customize filtering in a Dynamic Data sites; many-to-many support for the ADO.NET Entity Framework; and much more. This release also contains our Futures project, with samples that show how to perform common tasks with Dynamic Data. Unless otherwise stated, the source code and binary files in this project are early Alpha-testing builds and are intended for experimentation only.

Get the ASP.NET Dynamic Data Preview CodePlex release | Discuss in Forums

 

Latest Dynamic Data Blogs