T4MVC 操作令牌

发布于 2024-12-22 21:26:55 字数 55 浏览 2 评论 0原文

操作令牌已从 T4MVC 中删除。那么我是否理解正确,没有用于在同一控制器内引用操作的简短语法?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盗梦空间 2024-12-29 21:26:55

更新(12/24/2011):

我的错,我没有思考清楚,并得出了错误的结论,即它已经过时了,根据 T4Mvc 中这 2 个定义有什么区别?。虽然从视图引用操作时不需要它,但它从控制器本身内部提供了一个很好的快捷方式,这就是我首先添加该令牌的原因。

抱歉,中断了,我已在 2.6.67 恢复了令牌。


原始答案:

我在 什么中出现后删除了它T4Mvc 中这两个定义有什么区别?,我们得出的结论是不需要它。如果您发现在某些情况下不能忽略它,请告诉我。如果是这样,请使用具体代码更新问题。谢谢!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文