Databases Reference
In-Depth Information
NOTE
Although the field template lookup algorithm might seem complex and require numer-
ous file existence checks, in reality, Dynamic Data performs it only when a field
template is needed for a particular column the first time. The results are stored in a
hash table, and all subsequent lookups for this column are memory-based and very
fast.
Built-in Field Templates
Dynamic Data web project templates in Visual Studio 2010 include a large number of
ready-to-use field templates.
Boolean
The Boolean.ascx field template is used for Boolean columns in Read-only mode. It
contains a disabled CheckBox control, checked when the field value is true .
Boolean_Edit
The Boolean_Edit.ascx field template is used for Boolean columns in Edit and Insert
modes. It contains a CheckBox control users can use to set field value to true or false .
This field template does not support null values and, unlike other well-behaved field
templates, does not perform validation.
Children
The Children.ascx field template is used in Read-only and Edit modes for navigation
properties that represent the many side of one-to-many relationships between entities. For
example, the Customer entity in the Northwind sample data model has a children naviga-
tion property called Orders , which returns a collection of all orders placed by a given
customer. In Read-only and Edit modes, the Children.ascx entity template displays a
hyperlink to the dynamic List.aspx page that displays all child rows of the parent entity.
Children_Insert
The Children_Insert.ascx field template is empty. Because the dynamic List.aspx page
cannot display child rows of a parent entity that has not been submitted to the database,
this template prevents the Children.ascx field template from being used in Insert mode.
 
 
Search WWH ::




Custom Search