Dynamic Data Samples

 Recommended Download



Source Code DoubleColumn.zip
source code, 959K, uploaded Jun 17 2008  - 4972 downloads

 Other Available Downloads



Source Code ExistingWebsite.zip
source code, 216K, uploaded Jun 17 2008  - 4469 downloads
Source Code Scaffold.zip
source code, 946K, uploaded Jun 17 2008  - 3469 downloads
Source Code MvcDynamicData.zip
source code, 1190K, uploaded May 4  - 4578 downloads
Source Code DynamicDataSProc.zip
source code, 223K, uploaded Sep 2 2008  - 3514 downloads
Source Code Scaffold_Entities.zip
source code, 990K, uploaded Sep 25 2008  - 2652 downloads
Source Code ExistingWebsite_Entities.zip
source code, 221K, uploaded Sep 25 2008  - 2564 downloads
Source Code SecureDynamicData.zip
source code, 4795K, uploaded Nov 5 2008  - 3714 downloads
Source Code Modal.zip
source code, 2445K, uploaded Jan 6  - 2227 downloads

Release Notes

ASP.NET Dynamic Data Samples

Database Image API
Defaults From Filters
Dynamic Label

These samples have been moved into our new Dynamic Data Futures VS2008 SP1 RTM which has samples of what kinds of things we are looking at for Dynamic Data 2.0.

Double Column

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.

Existing Web Site

This is a sample that shows what an address-book Web application might look like coded in ASP.NET version 3.5. You can also see the same address-book application coded by using Dynamic Data. This example shows how much less code is required in order provide basic validation on entry pages. It also shows some examples of how instead of writing code, you add metadata to the data model.

Scaffold Demo

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.

MVCDynamicData

This is a sample that shows how to combine MVC 1.0 and Dynamic Data into the same site. This might be done when the site uses MVC for its front end and WebForms Dynamic Data for the backend admin interface.

DynamicDataSProc

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.

Scaffold Demo (Entity Framework)

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 Entity Framework Model 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. Note this adds metadata to the hide the primary keys for autogenerated columns and contains the Entity Framework workaround.

Existing Web Site (Entity Framework)

This is a sample that shows what an address-book Web application might look like coded in ASP.NET version 3.5. You can also see the same address-book application coded by using Dynamic Data. This example shows how much less code is required in order provide basic validation on entry pages. It also shows some examples of how instead of writing code, you add metadata to the data model. This is based on a Entity Framework Data Model.

Secure Dynamic Data

The Secure Dynamic Data Site allows or deny user's access to the database tables based on the user's authenticated role.
Furthermore, it allows or denies user's table actions based on the user's authorization.
The site integrates the ASP.NET forms authentication with a new concept of authorization provided by Dynamic Data.

Modal

This includes samples for both Entity Framework and Linq to SQL that replace the ListDetails page template with a ListDetails page template that is based on the ModalPopupExtender control from the Ajax Control Toolkit. This means when inserting or editing a record the DetailsView pops up on top of the page like a dialog box.
 Reviews for this release
 
 
 
 
 

Field Templates for EmailAddress, Url and Date are missing from ExistingWebsite and ExistingWebsite_Entities. But very useful code examples.
by docmrichards on May 29 at 4:58 PM 
Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987