NancyFx/Nancy — pull request #720 by maxwe789 (2012-08-20 08:51:15+00:00)
Title: Bindto

Fixed BindTo with added unit tests and updated demo project.

Before I started BindTo would not work at all, after fixing that it became apparent that the current implementation would overwrite non-nullable properties on your model such as Guids and Ints. I have changed the IBind interface to provide a method for recording which properties the binder binds to so that the BindTo method can only overwrite fields that are part of the request.

Any feedback or requests are welcomed. I will change this until you are happy with the implementation.