User Tools

Site Tools


thinkgeo.mapsuite.mvcedition.entitymodelbinder

ThinkGeo.MapSuite.MvcEdition.EntityModelBinder

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

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.txt · Last modified: 2017/03/16 21:59 (external edit)