What is the difference between these 2 definitions in T4Mvc?

纵饮孤独 提交于 2020-01-15 05:54:08

问题


In my razor view I have the following:

   var url = "@Url.Action(Mvc.Leads.GetAllLeads())"
   var url2 = "@Url.Action(Mvc.Leads.Actions.GetAllLeads())"

They both appear to generate the same Url. Why the actions property?


回答1:


In short, no. The Actions property is there for backward compat with a really early version of T4MVC. But it may be better to yank it altogether now to avoid confusion.



来源:https://stackoverflow.com/questions/8536269/what-is-the-difference-between-these-2-definitions-in-t4mvc

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