Validating WCF services with System.ComponentModel.DataAnnotions

added by devtrends
1/4/2012 10:26:27 AM

6 Kicks, 401 Views

All WCF services operations need some level of parameter validation to ensure that the data passed to the operation is present and correct. Two popular methods are manual checking and the Validation Application Block (VAB) from Enterprise Library. This article discusses another option - using the validation features from System.ComponentModel.DataAnnotations.


1/4/2012 10:27:05 AM
Seems like a no-brainer since the package is on Nuget. Nice work.

1/4/2012 8:17:17 PM
Validations using Data annotations is an excellent feature to extend WCF.