If you have access to change the class: decorate all the properties with[Required]
or [BindRequired]
.
If you don't, you should make a DTO (Data Transfer Object) for that class and apply [Required]
or [BindRequired]
attributes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…