T4MVC Actions token

别说谁变了你拦得住时间么 提交于 2019-12-11 10:17:32

问题


Actions token was removed from T4MVC. So do I understand right there is no short syntax for referencing Action inside the same Controller?


回答1:


UPDATE (12/24/2011):

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.

Sorry about the break, I have restored the token in 2.6.67.


ORIGINAL ANSWER:

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!



来源:https://stackoverflow.com/questions/8625462/t4mvc-actions-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!