Méthode | Description | |
---|---|---|
GetPropertyValue ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
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.
|
|
SetProperty ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
Sets the specified property by using the specified controller context, binding context, and property value.
|
Méthode | Description | |
---|---|---|
IsEntityType ( |
||
IsSimpleGenericBindableEntityCollection ( |
||
SetEntityCollectionProperty ( System.Web.Mvc.ModelBindingContext bindingContext, |
If the property being bound is a simple, generic collection of entity 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.
|
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 | |
Résultat | object |
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. |
Résultat | bool |
protected SetProperty ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext bindingContext, |
||
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. |
propertyDescriptor | Describes a property to be set. The descriptor provides information such as the component type, property type, and property value. It also provides methods to get or set the property value. | |
value | object | The value to set for the property. |
Résultat | void |