User Tools

Site Tools


thinkgeo.mapsuite.mvcedition.entitymodelbinder

This is an old revision of the document!


ThinkGeo.MapSuite.MvcEdition.EntityModelBinder

Inheritance Hierarchy

Members Summary

Public Constructors

EntityModelBinder()

N/A

Remarks

N/A

Parameters

Protected Constructors

Public Methods

BindModel(ControllerContext,ModelBindingContext)

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

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.

ToString()

N/A

Remarks

N/A

Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

N/A

Remarks

N/A

Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

N/A

Remarks

N/A

Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

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

Finalize()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

Protected Properties

Public Events

thinkgeo.mapsuite.mvcedition.entitymodelbinder.1442806378.txt.gz · Last modified: 2015/09/21 03:32 by admin