====== ThinkGeo.MapSuite.Mvc.EntityModelBinder ====== ===== Inheritance Hierarchy ===== *System.Object ***ThinkGeo.MapSuite.Mvc.EntityModelBinder** *[[ThinkGeo.MapSuite.Mvc.MapEntityModelBinder]] ===== Members Summary ===== ==== Public Constructors ==== ** {{wiki:PublicMethod.gif|}} EntityModelBinder() ** * //N/A// == Remarks == * //N/A// == Parameters ==
==== Protected Constructors ==== ==== Public Methods ==== ** {{wiki:PublicMethod.gif|}} BindModel(ControllerContext,ModelBindingContext) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Object * Description:The bound value, it will create the instance of the ModelType of bindingContext by converting all the relevant types from the incoming HTTP request. The method we first check whether it contains called modelName parameters, if any, directly call the Fill method to fill the object with the corresponding values ​​of the parameters. If not, check the Form is empty, if not empty, Form filled object. If the Form is empty, check the QueryString is empty, if not empty QueryString to fill the object, if you are empty, null is returned. here only one example of the actual project may here need other forms of control and judgment are bound even create multiple ModelBinder to different entities. == Parameters == * //controllerContext// * Type:ControllerContext * Description:The controller context, holds information about the current HTTP request and about the associated controller. * //bindingContext// * Type:ModelBindingContext * Description:The binding context, holds information about the model itself and its metadata.
** {{wiki:PublicMethod.gif|}} ToString() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:String * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} Equals(Object) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Boolean * Description:N/A == Parameters == * //obj// * Type:Object * Description:N/A
** {{wiki:PublicMethod.gif|}} GetHashCode() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Int32 * Description:N/A == Parameters ==
** {{wiki:PublicMethod.gif|}} GetType() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Type * Description:N/A == Parameters ==
===== Protected Methods ===== ** {{wiki:ProtectedMethod.gif|}} BindModelCore(ControllerContext,ModelBindingContext) ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Object * Description:N/A == Parameters == * //controllerContext// * Type:ControllerContext * Description:N/A * //bindingContext// * Type:ModelBindingContext * Description:N/A
** {{wiki:ProtectedMethod.gif|}} Finalize() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Void * Description:N/A == Parameters ==
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** * //N/A// == Remarks == * //N/A// == Return Value == * Type:Object * Description:N/A == Parameters ==
==== Public Properties ==== ==== Protected Properties ==== ==== Public Events ====