The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Validation in Linq to SQL and ASP.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Manish SinghPosted Nov 21, 2011, 4:06 PM
Thanks John Charles Olamendi it's really helpful.
sukumar thotaPosted Jun 1, 2010, 11:32 AM
I have custom validation in my datacontext that if a username is already existing, it won't let another user save with the same name. That works fine when I add a new user but I am having a problem updating the same user as it validates again and finds the user existing so it throws an exception. Please let me know how can I apply validation for only certain actions like only when I add but not on update. I am using the submitchanges() method and I don't know where can I differentiate whether it's an update or adding new record. Please help me . Thanks.