I have model classes that have as properties items of complex types (i.e., other model classes). How can I make it so when I automatically generate views from Visual Studio, those classes (that are included in the top-level class) are displayed appropriately?
Basically, how do I update http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-4-custom-object-templates.html to ASP.NET MVC 3?
TIA,
Benjy
Are you asking to upgrade to the razor syntax? Otherwise it should still work in mvc 3. Just place your the code in his example in Views/Shared/EditorTemplates/Object.ascx