Preserving DataRowState when serializing DataSet using DataContractSerializer
Posted
by user349453
on Stack Overflow
See other posts from Stack Overflow
or by user349453
Published on 2010-05-25T00:01:34Z
Indexed on
2010/05/25
0:11 UTC
Read the original article
Hit count: 591
For various reasons I am having to send a typed dataset to a WCF service endpoint. This works fine except that upon Deserializing, the RowState of each row in each DataTable is set to 'Added', regardless of what they were on the client. If I write the serialized stream out to a file, I see that the RowState is not part of the Serialized data. How can I add this so that I can preserve the RowState across service boundaries? Not that I think it matters, but the client process is running .net 3.5 while the service process is running .net 4.0
© Stack Overflow or respective owner