开发者

Silverlight UI Validation, using WCF but not RIA

开发者 https://www.devze.com 2023-01-16 17:08 出处:网络
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) .

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号