how to read the stored error if any in the validator object?

Posts   
 
    
vairam2008
User
Posts: 86
Joined: 11-Mar-2008
# Posted on: 12-Apr-2008 01:30:40   

how to read the stored error if any in the validator object? I am trying to read in the validateentity method of an entityvalidator to see if there is any error in the entity to read the error set by setentityfielderror. how to read the error? dataerrorinfo is protected.

thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 12-Apr-2008 05:08:37   

For the entity

(System.ComponentModel.IDataErrorInfo)involvedEntity)

For fields

(System.ComponentModel.IDataErrorInfo)involvedEntity)[field.Name]
David Elizondo | LLBLGen Support Team