I have been making my viewmodel nullable properties for quite some time. My reasoning is that when a check occurs, I donβt want the default values ββto be inserted into the fields that the user left empty, but they are necessary.
Of course, I mark the required fields as mandatory, but it made me think that I am losing a lot of fidelity in the object model by doing this.
Of course, my domain classes are NULL if they really can be null.
Should my viewmodel properties be null if a domain model is required?
source share