ASP.NET Dynamic Data 4.0 Samples
Dynamic Data Prototypes
This sample shows some of the things the ASP.NET team prototyped but did not offically make it into .NET 4. You can see examples of how to build advanced filters for Dynamic Data pages, examples of loading metadata from memory instead of on the actual objects, a field template for display images and much more.
This is a simple application that shows what a fully scaffolded application looks like. It is basically the Dynamic Data project template with the Northwind database added, and with a LINQ for SQL Class generated for all tables. The data model is registered in the Global.asax file and scaffolding is enabled. This shows what a Dynamic Data Web site can do without requiring any code from you.
This sample shows how to take two columns from the database and expose them in one single column in the data bound control. This is an advanced sample that shows how a field template control can use the Dynamic Data API's to get access to data from other columns and still keep the metadata driven display formatting.
This is a sample that shows how to use stored procedures with Dynamic Data. In the example the Contacts table in the Linq to SQL designer is mapped to used stored procedures for Insert, Update and Delete. Then there is a custom page for Contacts that overrides the OnSelecting event in the LinqDataSource and calls a stored procedure to return the data. The stored procedure supports server side paging, sorting and filtering.