C# Class Rebel.Cms.Web.Mvc.ModelBinders.BackOffice.StandardModelBinder

Model binder to inherit from containing utility functions for aiding in model binding
Inheritance: System.Web.Mvc.DefaultModelBinder
Mostrar archivo Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Protected Methods

Method Description
SetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, PropertyDescriptor propertyDescriptor, object>.Func getValue ) : void

Method to get the attempted value for the property and to execute the callback method to retreive the 'real' value, then set the property whilst executing the correct events. The event order is based on how the DefaultModelBinder sets properties so figured I'd go with these 'best practices'.

Method Details

SetPropertyValue() protected method

Method to get the attempted value for the property and to execute the callback method to retreive the 'real' value, then set the property whilst executing the correct events. The event order is based on how the DefaultModelBinder sets properties so figured I'd go with these 'best practices'.
protected SetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, PropertyDescriptor propertyDescriptor, object>.Func getValue ) : void
controllerContext System.Web.Mvc.ControllerContext
bindingContext System.Web.Mvc.ModelBindingContext
propertyDescriptor System.ComponentModel.PropertyDescriptor
getValue object>.Func callback method to get the 'real' value
return void