I think you won't get this from the Validator because it is not part of its
responsibilities. We are using NH Validator to check if the entity is valid
independently of other entities on the system.

Gustavo.

On Tue, Feb 24, 2009 at 10:02 AM, Karron Qiu <[email protected]> wrote:

> I want to write my own constraint for checking if the property's value is
> unique in database. But the IValidator interface only give me the value of
> the property. If I inplement IPropertyConstraint interface, I can get the
> name of the property, but I still can't get the information of the entity
> that will be validated.  Because I need to know the type of the entity to
> create a criteria.
>
> Anyone can give me some advice?  Thanks.
>
> --
> Regards,
> Karron
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to