Hi Nick,
We are planning to improve/enhance admin part of the templates by encapsulating CRUD operations on the entity into WebUserControls.
Here how relations between entities are used:
1. Column is FK (1:n relation): control rendered as DropDownList
2. Column type is Boolean: control rendered as RadioButtonList with Yes/No values
3. Column type string with fixed length: control rendered as TextBox (if length is greater then 255 then control textmode is set to Multiline (i.e. textarea))
4. Column type date: control rendered as textbox with custom calendar control.
5. Column used in m:n releation: control rendered as CheckBoxList
As far as inline record editing in the GridView, I agree most of the time this functionality is not practical, but it could be easily turned off:
<asp:CommandField ShowSelectButton="True" ShowEditButton="False" />
There are other templates that produce Admin controls (those are older versions), they are the same with respect to how relation works (I believe
).
Mike Shatny
--------------------------------------------------------------
Member of the .netTiers team http://www.nettiers.com
--------------------------------------------------------------