Why doesn't AndCompositeValidator set NestedValidationResults property?

Topics: Validation Application Block
Nov 1, 2009 at 8:46 AM
Edited Nov 2, 2009 at 12:32 AM

Hi,

Why doesn't AndCompositeValidator set NestedValidationResults property of ValidationResult when its validation fails?
Since OrCompositeValidator sets NestedValidationResults property, it seems more natural that AndCompositeValidator does so too.

I want to know the reason of current design.

Nov 3, 2009 at 5:56 AM

Hi,

We'll ask the ent lib team for this design question.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com

Dec 17, 2009 at 10:12 PM

atsukanrock,

This sounds like a bug. Can you please post a small project that reproduces the bug under Issue Tracker so that we could debug?

Thanks.

Grigori

Feb 13, 2010 at 9:13 AM
Edited Feb 13, 2010 at 9:49 AM

Hi Grigori,

Thank you for replying. And I'm sorry for being not able to reply.

I've made a small project you want and posted it to the following URL:

http://entlib.codeplex.com/WorkItem/View.aspx?WorkItemId=26201

Could you please examine it?

By the way, this issue seems not to be a bug. This behavior of AndCompositeValidator is too obvious to say it is a bug.

Best Regards,

Atsushi Kanbara