Hi Ken,
Yes I believe you might not quite understand what we mean by the term Scaffolding in this context. In the context of Dynamic Data, the model.edmx class that you have created is referred to as the Data Model. By itself, this class simply contains a description of whatever tables you have specified from the database and some functions to query and update the data.
However, the model.edmx isn't in any way responsible for generating any web pages to actually display this data to an end user. That is what the scaffolding function provided by Dynamic Data is responsible for.
You can enable scaffolding in one of two ways. Firstly it can be enabled within the global.aspx.cs file by setting the ScaffoldAllTables="true" as described at the bottom of page 488. This will automatically scaffold all of the tables described in your model.edmx data model.
Secondly, you can turn of the ScaffoldAllTables (as the book suggests you do on page 491) and enable scaffolding of individual tables by using the ScaffoldTable(True) attribute (code example shown on page 492).
Regards,
Dave
Last edited by david_gardner; December 12th, 2010 at 09:24 AM..
Reason: Typo
|