Should I make my ASP.NET MVC controller actions virtual?

后端 未结 4 352
滥情空心
滥情空心 2021-01-12 05:19

File -> New Project for ASP.NET MVC projects used to generate controllers with virtual actions. I\'m not sure if that stopped with MVC 2 or MVC 3, but is this no longer a be

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 05:44

    T4MVC Does make action methods virtual. If you are using it, it should make action methods virtual, no other way it can work

提交回复
热议问题