How to use NHibernate and DTOs with RIA Services
问题 I’m using NHibernate with RIA Services and Silverlight 4. I create DTOs for transferring the data via RIA Services rather than distributing my domain layer objects (as per Martin Fowler’s First Law of Distributed Object Design: “Don’t distribute your objects!”). The DTO objects are flattened down to two layers from five corresponding layers in the domain layer. Here’s my problem. After making changes in Silverlight 4, RIA Services knows which DTO objects have been modified, but in the server