BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object |
Ensures that the DataType property of the model is set correctly. The DataType property may not be null, in which case we need to ensure that the DataTypeId and DataType.Id are the same, if they are not, it means the editor changed the DataType so we need to go look it up by the new Id and re-map. Otherwise if it is null, this generally means that its a new property so we need to lookup the DataType by the DataTypeId and re-map. |
|