Hi, everyone.
Is there a way to exclude validation of child objects, if I want to validate only parent in code like this:
In case when I need to validate only CustomerViewModel how can i disable validation of Customer with CustomerValidator and validate only CustomerViewModel with CustomerViewModelValidator?
Is there a way to exclude validation of child objects, if I want to validate only parent in code like this:
[Validator(CustomerValidator)] class Customer { ... } [Validator(CustomerViewModelValidator)] class CustomerViewModel { public Customer { get; set; } //Some other data ... }