SnowJim

Hey!

I Have solution that contains the following projects:

Client
ServiceImplmenetation
ServiceContracts
DataContracts
Business Logic Layer
Data Access Layer

In the DataAccessLayer there is TableAdapters that generates Typed Dataset. I want to transfare this typed datasets to the client without generate a proxy version of them on the client.

How do I do this

Maby I could transfer the typed dataset with data to a XML document and send it with WCF, and then on the client I deserilize it to a typed dataset, is this possible And if so, how

BestRegards
snowman


Re: Windows Communication Foundation (Indigo) Sending Typed Dataset with WCF?

BenK

Its possible but slow but i really do recommend using a proxy that way if you deside to change it on the server it will still work.

Have a search through this forum there are lots of post with issues with datasets and work arounds/ solutions.

Regards,

Ben





Re: Windows Communication Foundation (Indigo) Sending Typed Dataset with WCF?

joe zhou - MSFT

Typeed Dataset is serializable by Datacontract serializer. If you want share the same typed dataset between client/server, you can use /r: to point to the binary that contains this shared typed dataset definition on client side then it won't be regenerated.

HTH

Joe





Re: Windows Communication Foundation (Indigo) Sending Typed Dataset with WCF?

SnowJim

Thanks!

But in this case the typed dataset are genereated by by tableadapters in the DAL, I do not want the client to know of the DAL(reference to the DAL component). Is there a way to separate the Generated Dataset from tabeladapter ans place thies in a external class library that both the service and client could know of(reference to)