Wednesday, April 23, 2008

Daniel Simmons commented on the next beta of EF where the team has worked with the WCF team to allow for better serialization (in an interoperable way) of complete graphs and relations. I'm very excited to hear that, but as Julie Lerman pointed out: it's also kind of frustrating for me. ;-)

As you know, I have 3 different pieces of technology that help make the possibility of n-tier disconnected scenario easy.

One of those pieces is the circular serializer, that was created to change the way WCF serializes circular references. However, it has grown to also support 'original' values.

My current plan is as follows:
I will wait to see how WCF serializes entity graphs in the next beta. I expect to see that my circular serializer is no longer necessary. Hopefully I will be able to remove it all together.
What will still be necessary though is getting the original values across the wire. So, I'll probably generate those properties inside of the classes themselves, negating the use of a surrogate serializer. Then, on the client, you will just be able to use your objects like before, and on the server you would notify the objectgraph of the need to fill the original values just before you return them. This might work out very well.

The use of a surrogate is actually what is stopping me from targeting Silverlight, so with a little luck, the changes in the next version will enable the use of Silverlight as well. I'm looking forward to it!

Wednesday, April 23, 2008 11:12:39 AM (Romance Standard Time, UTC+01:00)  #    Comments [2]  |  Trackback
Friday, April 25, 2008 12:09:11 AM (Romance Standard Time, UTC+01:00)
I think that the circular serializer is a great project to have out there for it's educational value even if you don't leave it inside of PostSharp4EF.

julie
Friday, April 25, 2008 8:01:09 AM (Romance Standard Time, UTC+01:00)
If the next EF beta renders it useless, I'll move it out and probably post it as source code on the PostSharp community website, or host it here on the blog.
Ruurd Boeke
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):