Applies to Silverlight 4, 5
Validation of your data before persisting it is a requirement for almost every application. By using validation on your Entities, you make sure that no invalid data is persisted to your data store. With WCF RIA Services, you've got the option to write validation logic once, and it will be executed both on the client and the server. A lot of this is done automatically: in property setters, on the client before submitting to the server, on the server before submitting to the data store, ... but sometimes, you want to trigger validation exactly when you need it: this is what this recipe is about.
In this recipe, you'll learn to manually trigger validation.