What's the best way to do unique constraint validation in the Self Servicing model?
For instance, if I have a table that's recordid, userid, username in sql server
Recordid is a identity, unique constraint is on userid.
If I try to save an entity back to the db that violates the constraint I get an exception thrown by llbl that show the violation of the constraint from the db. Is there a way to check on this ahead of time in the entity validator or something similar so I can handle it with out round tripping to the db?
This would also let me show an error provider next to a row in a grid like I do for all my other validations. I had my entities implement IDataErrorInfo. Since the constraint just fires an exception, the error providers aren't show.
Thanks!