Please take a look at the sample project I prepared for you and let me know if it helps.
Regards,
Tihomir Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
In my project when I add service reference I will get the classes "Employee" and "Company". So if I make changed there related to validation and then when i update the service reference the changes will be lost.
So is there any other way for validation??
Regards,
Niranjan
0
Tihomir Petkov
Telerik team
answered on 10 Mar 2010, 04:40 PM
Hello Niranjan,
Well, I can't think of a workaround at the moment, but I believe updating the service reference will not occur very frequently, right? To minimize the amount of overwritten code you can extract the validation logic in a static class somewhere and only add the calls to the validation methods in the setters.
Best wishes,
Tihomir Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.