T4MVC Actions token

2019-07-23 19:35发布

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

1条回答
Evening l夕情丶
2楼-- · 2019-07-23 20:15

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!

查看更多
登录 后发表回答