I encountered the following problem in my case where I call a function over
..NET remoting and passing thru a DataSet as a parameter:
The BinaryFormatter fails to correctly serialize/deserialize the rows of a
table if in a table 2 rows exists, one with DataRowState value Added en one
with the value Deleted but both rows having the same key value.
The reason I need this is because I have a Parent/Child relation in which I
first delete two rows from the Parent table (and the Child rows are
automatically deleted) and then add two new rows into the Parent table and
new rows in the Child table. But the rows I add in the Child table have the
same key as the one I have already deleted. Clientside the DataSet correctly
represents the situation, but ServerSide (after going thru .NET remoting)
the inserted rows are lost, I need those rows serverside to correctly update
the database.
Has anyone encountered the same problem ? Is it really a bug (i think so
because the BinaryFormatter doesn't deserialize the same class as it
serializes).
Greetings,
Yussef Alkhamrichi
|