We are using nHibernate in our domain model, and would like to create DTOs for sending objects over WCF to a front-end application made using the MVVM-pattern (WPF/WinForms). We have total control of both the client and server - and both are upgraded at the same time, so versioning/cross platform is not an issue.
I see how editing single entries works, however I am still not certain about the best way to send collections of objects over the wire. The DTO then used to fill a grid, where rows can be updated, deleted or added.
My question is; What is the best method using DTOs and nHibernate to capture insert, updates and deletes in a grid/table like scenario?
Thank you.
(Our application originally used DataTables, where the DataTable/DataRow kept track of modifications and using GetChanges/Merge you could transfer over the wire only what was modified and needed updating - where inserts and deletes were also well kept track of)