How to call ValidationAttributes manually? (DataAnnotations and ModelState)

后端 未结 2 1168
滥情空心
滥情空心 2021-01-05 16:56

We have a need within some of our logic to iterate through the properties of a model to auto-bind properties and want to extend the functionality to include the new dataanno

2条回答
  •  萌比男神i
    2021-01-05 17:26

    You do use the System.ComponentModel.DataAnnotations.Validator class to validate objects.

提交回复
热议问题