Just came across this and I'm not sure for its reason. Why would an
uninitialized persistent collection not validate? Its seems, NHV is
checking to see if the property is initialized in its validation. Is
this correct? If I initialize the collection prior to invoking
validate, it works fine. I simply want to ensure that the collection
as at least one element. Why would NHV care if its initialized or not
when it would be initialized after accessing the property via the
proxy?
Define(x => x.Contacts).NotEmpty().WithMessage("There must be at least
1 contact");
Thanks in advance!
--
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.