开发者

MVC3 - Scaffold Template (Field Order)

开发者 https://www.devze.com 2023-02-15 21:11 出处:网络
When using the following dialog to add a view, is there anyway you can state in what order you want the fields created?

When using the following dialog to add a view, is there anyway you can state in what order you want the fields created?

MVC3 - Scaffold Template (Field Order)

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

0

精彩评论

暂无评论...
验证码 换一张
取 消