Method | Description | |
---|---|---|
BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object |
Method | Description | |
---|---|---|
BindProperty ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
GetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
OnModelUpdated ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : void | ||
OnModelUpdating ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : bool |
Called when the model is updating. We handle updating the Id property here because it gets filtered out of the normal MVC2 property binding.
|
|
OnPropertyValidated ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
OnPropertyValidating ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
SetProperty ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
Method | Description | |
---|---|---|
IsEntityType ( |
||
IsModelErrorAddedByMvc ( System.Web.Mvc.ModelError modelError ) : bool | ||
IsMvcModelBinderFormatException ( System.Web.Mvc.ModelError modelError ) : bool | ||
IsSimpleGenericBindableEntityCollection ( |
||
SetEntityCollectionProperty ( System.Web.Mvc.ModelBindingContext bindingContext, |
If the property being bound is a simple, generic collection of entiy objects, then use reflection to get past the protected visibility of the collection property, if necessary.
|
|
SetIdProperty ( System.Web.Mvc.ModelBindingContext bindingContext, |
If the property being bound is an Id property, then use reflection to get past the protected visibility of the Id property, accordingly.
|
public BindModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : object | ||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
return | object |
protected BindProperty ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
propertyDescriptor | ||
return | void |
protected CreateModel ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
modelType | ||
return | object |
protected GetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
propertyDescriptor | ||
propertyBinder | IModelBinder | |
return | object |
protected OnModelUpdated ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : void | ||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
return | void |
protected OnModelUpdating ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext ) : bool | ||
controllerContext | System.Web.Mvc.ControllerContext | The context within which the controller operates. The context information includes the controller, HTTP content, request context, and route data. |
bindingContext | System.Web.Mvc.ModelBindingContext | The context within which the model is bound. The context includes information such as the model object, model name, model type, property filter, and value provider. |
return | bool |
protected OnPropertyValidated ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
propertyDescriptor | ||
value | object | |
return | void |
protected OnPropertyValidating ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
propertyDescriptor | ||
value | object | |
return | bool |
protected SetProperty ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
controllerContext | System.Web.Mvc.ControllerContext | |
bindingContext | System.Web.Mvc.ModelBindingContext | |
propertyDescriptor | ||
value | object | |
return | void |