Passing value/property to a validator

Topics: Validation Application Block
May 13, 2007 at 2:34 PM
Edited May 13, 2007 at 2:35 PM

I need to implement a custom validator which checks the property value depending on an entered property value and another property's value.
Let's say like an address - street, house, apartment. I need to check an entered house number depending on an entered street, an apartment depending on street and house.

Could you please point me out to a sample or maybe entlib source code?

p.s. I mean if there is a way to implement it as a declarative validator.