开发者

Pattern for client-side update in SOA

I want to develop a data-driven WPF application, which uses WCF to connect to the server-side, which itself uses NHibernate to persist data. For exam开发者_StackOverflowle there is a domain-object called "Customer" and there is also a flattened (with Automapper) "CustomerDTO" which is returned by a WCF-operation called "GetCustomer(int customerId)".

I don't know where I should make data-validation and how I should handle client-side updating, so that one could modify single or multiple properties on the client by editing a form and finally clicking "save"...

Could you please provide me with some common patterns in such a situation or any best-pratice examples, which target real LOB-applications (n-tiered pattern, multiple layers, etc.)


Sounds like a good fit for Self Tracking Entities. Be aware that STE's are hot off the press and still have a bit more maturing to do. The approach used with them should answer your common patterns question.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜