New Posts New Posts RSS Feed: RelatedList validated with data annotations
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

RelatedList validated with data annotations

 Post Reply Post Reply
Author
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Topic: RelatedList validated with data annotations
    Posted: 03-Apr-2013 at 6:57pm
DevForce won't automatically perform validation on a RelatedEntityList. You can instead try doing the validation on the scalar side of the relationship, adding the annotation on either, or both, the scalar navigation property and the corresponding FK property.

You can also try adding a "BeforeGet" or "AfterGet" property interceptor for your RelatedEntityList. Within the interceptor you can then force validation on the entity or specific properties, or perform other actions. Setter interceptors aren't provided for these properties.

What sort of validation do you want to provide on the list?
Back to Top
jsalcedok View Drop Down
Newbie
Newbie
Avatar

Joined: 03-Apr-2013
Location: Peru
Posts: 1
Post Options Post Options   Quote jsalcedok Quote  Post ReplyReply Direct Link To This Post Posted: 03-Apr-2013 at 9:51am
Hello:
I don't know if is possible to validate a property of type "RelatedEntityList" with a data annotation (custom verifier validator) and how?. Thanks so much in advance for your answer.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down