Selective validation of child properties - Fluent Validation in MVC
问题 I'm using Fluent Validation with the Ninject.Web.Mvc.FluentValidation library to automatically wire up all of my validators (and use dependency injection to create the validators). I created the following Models: public class Parent { public string Name { get; set; } public Child Child1 { get; set; } public Child Child2 { get; set; } } public class Child { public string ChildProperty { get; set; } } With the following validators: public class ParentValidator : AbstractValidator<Parent> {