在Asp.net内核中ActionFilter的OnActionExecuting方法中,模型始终为空
(filterContext.Controller as Controller).ViewData.Model我在aspnet MVC3中找到了一个,它在我的MVC5项目中工作。当我使用Asp.net内核时,这个问题仍然存在,并且没有DefaultModelBinder。如何在操
在asp.netmvc应用程序中,我创建了自定义模型绑定器和IModelBinderProvider,以便在货币以数千种格式发布到服务器(如$123,456.00 )时处理货币。我只希望在模型的属性具有特定属性的情况下调用自定义模型绑定器。modelValue, out bool success) // do something}
public class ScrubbingModelBinder : DefaultModelBind