Attribute similar to [ActionName] but for controller
是否存在类似于[ActionName]
但对于控制器的属性?
No, there is no such attribute. You would have to write your own IControllerFactory
. You could start by deriving from DefaultControllerFactory
.
上一篇: 这是GCC中的错误还是我的代码错了?