Can someone give me some suggestions here. We have a WCF service communicating with a SQL database using Linq to SQL. Now I don't want to use the auto-generated data types but want to design my own Data Contracts that I can have full control over.
But how should the data contracts be designed? I'll try to explain why I find this hard:
Let's say this database has 3 tables:
So, each session can have multiple clients and each client can have multiple messages.
Now, when I create the data contracts that reflects this hierarchy, should I create data contracts with a "flat" hierarchy that looks like this: