views:

47

answers:

1

Anyone have any recommendations on the best way to do this? Data Annotations make sense, but I can't use them with my WCF services (http://stackoverflow.com/questions/822328/data-annotations-on-wcf-service-contracts) . I can't use RIA, because I need to send my services over TCP.

A: 

Implement IDataErrorInfo on your entities; you can use a validation framework to do most of the heavy lifting (I've used Fluent Validation for this purpose in WPF). Basically I don't think there's a built-in way, like with RIA services, so you need to write a bit more code.

Alex Paven