

To do so, you create classes to represent database entities by using a tool provided by Visual Studio, and then register the data context for use by Dynamic Data. The next step is to add a database to the project. Visual Studio creates the folder and the structure for the Web site. In the Language list, click the programming language that you prefer to work in. In the first Location box, select File System, and in the second box, enter the name of the folder where you want to keep the pages of the Web site.įor example, enter the folder name C:\WebSites\DynamicData. Under Visual Studio installed templates, select Dynamic Data Web Site (to use LINQ to SQL) or Dynamic Data Entities Web Site (to use the ADO.NET Entity Framework). The New Web Site dialog box is displayed. Or if you do not have this option, click New, and then click Web Site.

Start Visual Studio or Visual Web Developer. You can create Dynamic Data Web sites in Visual Studio by using a Web site template.
Adventureworkslt 2014 download install#
Make sure that you install the correct version of the sample database for the version of SQL Server that you are running (Microsoft SQL Server 2005 or Microsoft SQL Server 2008).
Adventureworkslt 2014 download how to#
For information about how to download and install the SQL Server sample database, see Microsoft SQL Server Product Samples: Database on the CodePlex site. Microsoft Visual Studio 2008 Service Pack 1 or Visual Web Developer 2008 Express Edition Service Pack 1.Įither the AdventureWorks or the AdventureWorksLT sample database. In order to complete this walkthrough, you will need: See a video that shows this feature: Watch. In this walkthrough you will build an application that displays pages of data from the AdventureWorks sample database. These auto-generated Web pages provide display, insert, delete, and edit capabilities for each table. When the scaffolding mechanism is enabled in a Dynamic Data Web site, ASP.NET analyzes your data model and generate Web pages dynamically for each table. An important feature of Dynamic Data is the scaffolding mechanism. Dynamic Data enables you to create a data-driven Web site with minimal or no additional code. This walkthrough shows you how to create a basic Web application that uses ASP.NET Dynamic Data.
