According to @archil answer you should make your public variables. Although this may work with types, you will run into problems as soon as you add complexity. Of course, for classes, but it is also possible for null types.
Interacting models use reflection to analyze form fields in the model, and reflection works differently in properties for public variables - in the case of these models, the differences are likely to cause a failure here .
Hope this helps - and the hat tip on @archil to answer this (perhaps) correctly, much earlier than me!
source share