I think that only the lastone, nhv doesnt expect validators on collection itself, just in each element and in the col property like valid and lenght. You can add an issue with test case on jira...
2010/10/1, Phil <[email protected]>: > > > On Oct 1, 10:43 pm, José F. Romaniello <[email protected]> wrote: >> I gave you two options, you don't have to use the two. >> >> - If you want to validate the objectA, you do >> ValidatorEngine.Validate(objectA) >> - If you want to validate just a single property of the object A, you >> do >> ValidatorEngine.Validate(objectA, "propertyname") *or >> ValidatorEngine.Validate(objectA, >> o => o.PropertyName).* >> >> Your property can have any level of complexity or graph nodes. it will >> work >> well. >> >> You can NOT expect than having: >> >> public class Bar >> { >> [Valid] >> public IEnumerable<Foo> Foos{get;set;} >> >> } >> >> and doing ValidateEngine.Validate(bar.Foos) will work. >> > > > You say "Your property can have any level of complexity or graph > nodes. it will work well. " Ok, so going back to the original post, > please explain which of the following validators you would expect to > be validated if I call ValidatorEngine.Validate(Baz1), and lets see if > we agree :) > > UniqueMembers on the FooCollection object? > SomeOtherValidator on the FooCollection object? > SomeValidator on all of the Foo objects on FooCollection? > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Enviado desde mi dispositivo móvil -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
