MVC3 - Scaffold Template (Field Order)
When using the following dialog to add a view, is there anyway you can state in what order you want the fields created?
I tr开发者_JAVA百科ied [Column(Order=0)] ::: [Column(Order=12)], but no joy!
Thanks Paul
This is happening because the Details.tt template (as well as all the others) does not do any ordering when generating the markup. More details on how to customize the templates: ASP.NET MVC custom T4 templates for views
精彩评论