Is Nancy's model bound to fields as per the documentation or not?

I tried Nancy's really simple example for model binding and the documentation ( https://github.com/NancyFx/Nancy/wiki/Model-binding ) says that fields are just as useful as properties, but in practice they only bind. when i use properties.

Is this documentation correct (if yes, why isn't it my model binding?) Or incorrect documentation (if yes, why?)

+3


source to share


1 answer


model binding to fields was not supported until v1 . As long as you are using v1 or newer this should work out of the box. If you can't provide code that reproduces the problem along with the version of Nancy you are using?



Since the documentation targets the most recent version, it can be confusing as to what features are supported in each version. Currently, the best place to find release notes for such changes is on the undo changes page .

0


source







All Articles