What: Create your own project, called DynamicDataProject, that mimics the SampleProject shipped with ASP.NET Dynamic Data 4.0 Preview available on CodePlex.
Why: The objective is to analyze the new Dynamic Data features and build gradually complex samples that exercise those features. In the process I will highlight the main elements that you must know to understand the new features. At least that's what I hope to accomplish. You will be the judges.
Our software engineers did an excellent job in creating a set of projects to show the new Dynamic Data 4.0 features. For my own education, I decided to start from scratch by recreating these projects and adding my own examples that I will share in subsequent posts. Because I found this exercise very helpful, I decided to start sharing this information with you as I progress.
The Dynamic Data 4.0 Preview contains Web projects that illustrate the next generation of Dynamic Data features including:
As I said before, I am going to build the DynamicDataProject from the ground up. I will then use it to host my own examples. The project will show the use of the following features:
The following is the project file organization:
The following are the steps to create the project.
To use the new Dynamic Data features you must access the assemblies containing the new types which are not part of the product yet. Enabling the use of these types is achieved by adding the new DLLs to the project and modifying the Web.config file as shown next.
The following are the steps you must perform.
The following are the steps you must perform. If you have issues, look at the web.config file in the downloaded SampleProject.
The database is a key element in a Dynamic Data Web site. The following steps describe how to add the Northwind database to your site.
For more information on this topic, see Walkthrough: Creating a New ASP.NET Dynamic Data Web Site Using Scaffolding.
You must modify the Global.asax file to allow the use of multiple modelsby copying over the changes from the SampleProject/Global.asax. For more information, see David’s post Using Dynamic Data with multiple databases.
Notice the following:
The DynamicData folder created by Visual Studio when you selected the Dynamic Data Web Application template contains elements that are no longer valid. Keep the Images folder, the FilterUserControl.ascx and GridViewPager.ascx controls. Delete all the other folders.
You must modify the project root directory as described next.
Copy the following files from the downloaded SampleProject:
Copy the following sample folders from the downloaded SampleProject:
This folder contains my examples that exercise the new Dynamic Data features. Refer to these related posts:
PingBack from http://www.muufo.com/analyzing-the-dynamic-data-40-preview