Question about validation from a Book

Jul 1, 2010 at 10:07 PM

You have defined the following validation for a Book:

Validation on server:
- BookRules.cs to check if the User is the owner from the book
- BookShelfService.cs to check of the book exists and check if the ASIN is valid

Validation on Server and Client
- BookRules.shared.cs

 

My question is : Why did you define the ASIN check in the service and not on the Book (using BookRules.cs) ?

 

 

 

 

Coordinator
Jul 26, 2010 at 2:31 PM

The biggest reason really is to show operation-level validation. Essentially RIA Services support field-level, entity-level, and operation-level validation.