RuleFor(x => x.Orders).SetCollectionValidator(new OrderValidator())
.Where(x => x.Cost != null);
Is that means only set validator for orders which cost is not null? if so, move 'Where' statement in front may be a better choice?
↧