Anyone have any recommendations on the best way to do this? Data An开发者_StackOverflow社区notations make sense, but I can't use them with my WCF services (Data annotations on WCF service contracts) . I can't use RIA, because I need to send my services over TCP.
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.
精彩评论