asp.netlinqvalidation

Validation and Linq


I am trying to add validation logic into my application. I have tried to follow this tutorial http://www.a2zdotnet.com/View.aspx?id=75

but I do not have any
partial void OnEmailIdChanging(string value) or any "changing" functions. in my class, so I get an error from Visual Studio. It seems that VS did not generate enough code when I have created the dbml file...

Any ideas ?

Thank you!


Solution

  • I have found the solution. I was because I did not set correctly a primary key on the table !