T4MVC操作令牌 [英] T4MVC Actions token
问题描述
令牌操作从T4MVC除去。所以,做我的理解正确的有用于引用相同的控制器内的行动没有短语法?
Actions token was removed from T4MVC. So do I understand right there is no short syntax for referencing Action inside the same Controller?
推荐答案
更新(2011年12月24日):
UPDATE (12/24/2011):
我的坏,我不清醒,并想出了不正确的结论,这是过时的,每<一个href=\"http://stackoverflow.com/questions/8536269/what-is-the-difference-between-these-2-definitions-in-t4mvc\">What在T4Mvc这两个定义之间的区别?。虽然指的是从视图操作时不是需要它,它使一个很好的快捷方式从控制器本身,这就是为什么我补充说,令牌摆在首位之内。
My bad, I wasn't thinking straight and came up the incorrect conclusion that it was obsolete, per What is the difference between these 2 definitions in T4Mvc?. While it's not needed when referring to actions from the view, it makes a nice shortcut from within the controller itself, which is why I had added that token in the first place.
很抱歉的休息,我已经恢复了令牌67年2月6日。
Sorry about the break, I have restored the token in 2.6.67.
原来的答复:
我删除了它,它在<一上来后, href=\"http://stackoverflow.com/questions/8536269/what-is-the-difference-between-these-2-definitions-in-t4mvc\">What在T4Mvc这两个定义之间的区别?,我们得出的结论并不需要它。让我知道你是否发现,在某些情况下,你不能忽略它。如果是的话,请更新特定code的问题。谢谢!
I removed it after it came up in What is the difference between these 2 definitions in T4Mvc?, and we concluded it was not needed. Let me know if you find that in some cases you cannot just omit it. If so, please update the question with specific code. Thanks!
这篇关于T4MVC操作令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!