User Tools

Site Tools


thinkgeo.mapsuite.mvcedition.mapentitymodelbinder

This is an old revision of the document!


ThinkGeo.MapSuite.MvcEdition.MapEntityModelBinder

<!– Class –>

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodMapEntityModelBinder

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodBindModel ControllerContext, ModelBindingContext EntityModelBinder Binds the model to a value by using the specified controller context and binding context.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodBindModelCore ControllerContext, ModelBindingContext EntityModelBinder(overriden)
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

MapEntityModelBinder()

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

BindModel(ControllerContext, ModelBindingContext)

Binds the model to a value by using the specified controller context and binding context.

Return Value

Return Type Description
Object<!– System.Object –> 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

Name Type Description
controllerContext ControllerContext<!– System.Web.Mvc.ControllerContext –> The controller context, holds information about the current HTTP request and about the associated controller.
bindingContext ModelBindingContext<!– System.Web.Mvc.ModelBindingContext –> The binding context, holds information about the model itself and its metadata.

<!– ThinkGeo.MapSuite.MvcEdition.EntityModelBinder –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

BindModelCore(ControllerContext, ModelBindingContext)

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description
controllerContext ControllerContext<!– System.Web.Mvc.ControllerContext –>
bindingContext ModelBindingContext<!– System.Web.Mvc.ModelBindingContext –>

<!– ThinkGeo.MapSuite.MvcEdition.EntityModelBinder(overriden) –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

Protected Properties

Public Events

thinkgeo.mapsuite.mvcedition.mapentitymodelbinder.1440040131.txt.gz · Last modified: 2015/09/21 03:33 (external edit)