如何像这样在asp.net核心的属性中使用<MyModel>
[CAttr<MyModel>()]
public ActionResult Index(string data)
{
....
}
我的属性是
public class CAttr : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
var temp = MyOperation.Get<MyModel>();
....
}
}