I've been handled a school project to complete, and am currently stuck at a specific point. The goal of the project is to create an OO-system that handles the data in a very specific way - both the server and client have the definition of the model-layer info, but the server has to handle all the data saving into a relational database.
Thus, both the client and server has a controller layer, that are quite different. Currently, only the server-side is written, and it handles relational-to-object mapping and in general, the management of all objects (R2O is solved with Entity Framework). But problem is where the reconstructed objects have to be transmitted to the clients in a way or another.
My question is: what would be the best solution to do so? I cannot change the layout (so clients cannot connect directly to the database server, it is a requirement unfortunately that there is a data providing server, and concurrency management must be solved on that part), but I can't really find an easy way to transfer objects of different classes with relations to each other over a TCP connection.
Again then - what is the solution you'd suggest, or to be more broad, what are my options?