开发者

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?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜