tags:

views:

388

answers:

1

I asked this earlier and followed Marc's advise. That did not help me.

link text

My client object is what I want to serialize but with Employee entity set, with any serialization, I get my object serialized without any reference to my EntitySets.

Anyone successfully serialized such objects?

A: 

Based on the info in the link, it looks like you are trying to serialise an IQueryable object.

I don't think that this is possible, it looses it's meaning when it goes out of scope of the db connection. Which it will when you go over a WCF hop.

What you can do is to pull the data out using a ToArray on your IQueryable object. That result will be serializable over WCF.

Hope this helps

Shiraz

Shiraz Bhaiji