Код: Выделить всё
public class ACAStatusAdjustmentCollectionValidator
: BaseValidator
{
public ACAStatusAdjustmentCollectionValidator(ISecureReadContext isolatedContext) : base(isolatedContext)
{
this.RuleForEach(x => x.Items).Must(this.SomeValidation)
//This when is based off of the collection items instead of the item itself
//.When(x => x.);
}
}
Подробнее здесь: https://stackoverflow.com/questions/411 ... reach-when
Мобильная версия