I have a standard RequiredIf attribute for some conditional validations.
My form and model are quite large, the model has 63 properties and most of them are verified.
Anyway, I have a problem when my model loads while my validation is in progress.
If I set a breakpoint in the first line of code inside the RequiredIf IsValid method, I see that my model has many null values. When I press F5 (to continue checking the next property), there are still a lot of zeros. If I press F5 about 5 times, the model is magically populated with the data I published.
My first 5-6 validations because of this wind up. Does anyone know something about how models load? I do not use custom model binding.
source share