7. type inference of ViewModel in HtmlHelper and HtmlHelper <T>
MvcHtmlString EditorFor<TModel, TValue>( HtmlHelper<TModel> html, Expression<Func<TModel, TValue>>
MvcApplication4.Models. Customer> In this way, any extension method that extends around HtmlHelper <T> will eventually use the ViewModel of the type;
8. Control the rendering of a certain attribute in ViewModel (use PartialView to control the rendering of ViewModel in fine granularity in some views)
= AddressId { ;
Dictionary<DataBoundControlMode, > modeViewPaths = Dictionary<DataBoundControlMode, >
Dictionary<, Func<HtmlHelper, >> defaultDisplayActions = Dictionary<, Func<HtmlHelper, >>(((( Dictionary<, Func<HtmlHelper, >> defaultEditorActions = Dictionary<, Func<HtmlHelper, >>((((
@ Model string <div>
9. decorator mode of the template (use of PartialView and ViewModel nesting (simplified ))