DataSet Loses Table's Row - A terrible problem

G

Guest

I have a dataset with 2 tables (father and child table) and a
relation between them with cascade for update and delete.
I also have a client application and a remote application.
If in the client application I delete a existing father's row and afterwards
create the same father's row with the same field values and a new child row
and call a remote application' method by remoting passing this dataset
(making the serialization), you will see that there is no child row in
dataset at the remote application's method.
I think serialization lost the child row. This is a terrible problem.

Can someone help me?
 
S

Sahil Malik

Hey Miha, slightly off topic .. check this out :)
http://dotnetjunkies.com/WebLog/sahilmalik/archive/2005/01/19/45995.aspx

okay sorry for the offtopic thingie !! :)

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik


Miha Markic said:
Hi Mauricio,

Before serializing check that row is indeed there.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

Mauricio Pires said:
I have a dataset with 2 tables (father and child table) and a
relation between them with cascade for update and delete.
I also have a client application and a remote application.
If in the client application I delete a existing father's row and
afterwards
create the same father's row with the same field values and a new child
row
and call a remote application' method by remoting passing this dataset
(making the serialization), you will see that there is no child row in
dataset at the remote application's method.
I think serialization lost the child row. This is a terrible problem.

Can someone help me?
 
G

Guest

Hi Miha,
The row is indeed there. I'm seeing the row in a datagrid and I also put a
break point and saw it in the dataset table but after the seralization the
child row vanished.
But note that the child row has vanished only if I create the father's row
with the same field's value from the deleted father's row.

Thanks.
Mauricio
ControlBase - Brazil

Miha Markic said:
Hi Mauricio,

Before serializing check that row is indeed there.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

Mauricio Pires said:
I have a dataset with 2 tables (father and child table) and a
relation between them with cascade for update and delete.
I also have a client application and a remote application.
If in the client application I delete a existing father's row and
afterwards
create the same father's row with the same field values and a new child
row
and call a remote application' method by remoting passing this dataset
(making the serialization), you will see that there is no child row in
dataset at the remote application's method.
I think serialization lost the child row. This is a terrible problem.

Can someone help me?
 
S

Sahil Malik

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top