How to sync complex domain objects structure between server and client
Are there any best practices for syncing hierarchical domain objects between client with mo开发者_StackOverflow社区dular structure (WPF,PRISM,MVVM) and server(WCF service and NHibernate for persistence in DB)?
Already have DTO objects for transport and separate module for server requests with callback management infrastructure.
Thanks in advance=)
AlexeyYou may want to take a look at the Microsoft Sync Framework.
Although its main implementation seems to focus on ADO.NET and synchronization of relational data, the Sync Framework supports synchronization of any type of object, including your own custom objects.
You can also choose the protocol over which you want to synchronize, so if you'd like to use e.g. WCF, it will work too.
It does, however, require some work or your behalf.
精彩评论