PC Review


Reply
Thread Tools Rate Thread

DataSet Loses Table's Row - A terrible problem

 
 
=?Utf-8?B?TWF1cmljaW8gUGlyZXM=?=
Guest
Posts: n/a
 
      19th Jan 2005
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?


 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      19th Jan 2005
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" <(E-Mail Removed)> wrote in message
news:65193998-69B0-4254-B720-(E-Mail Removed)...
>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?
>
>



 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      19th Jan 2005
Hey Miha, slightly off topic .. check this out
http://dotnetjunkies.com/WebLog/sahi.../19/45995.aspx

okay sorry for the offtopic thingie !!

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


"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:%23wiEZlh$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in
> message news:65193998-69B0-4254-B720-(E-Mail Removed)...
>>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?
>>
>>

>
>



 
Reply With Quote
 
=?Utf-8?B?TWF1cmljaW8gUGlyZXM=?=
Guest
Posts: n/a
 
      19th Jan 2005
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 [MVP C#]" wrote:

> 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" <(E-Mail Removed)> wrote in message
> news:65193998-69B0-4254-B720-(E-Mail Removed)...
> >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?
> >
> >

>
>
>

 
Reply With Quote
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      19th Jan 2005
Thanks for letting the "poor guy" first :-)

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

"Sahil Malik" <(E-Mail Removed)> wrote in message
news:%236njjRi$(E-Mail Removed)...
> Hey Miha, slightly off topic .. check this out
> http://dotnetjunkies.com/WebLog/sahi.../19/45995.aspx
>
> okay sorry for the offtopic thingie !!



 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      19th Jan 2005
Heh

I am curious to hear Frans' reaction on it though .. I doubt he hasn't read
the joke yet. :-P

- SM

"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:eMoYqoi$(E-Mail Removed)...
> Thanks for letting the "poor guy" first :-)
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> SLODUG - Slovene Developer Users Group
> www.rthand.com
>
> "Sahil Malik" <(E-Mail Removed)> wrote in message
> news:%236njjRi$(E-Mail Removed)...
> > Hey Miha, slightly off topic .. check this out
> > http://dotnetjunkies.com/WebLog/sahi.../19/45995.aspx
> >
> > okay sorry for the offtopic thingie !!

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSet loses original value across an interface codefragment@googlemail.com Microsoft C# .NET 5 29th Oct 2007 01:48 PM
Dataset.WriteXML loses arrays / not preserving all data Fergal Ó Ceallaigh Microsoft ADO .NET 6 19th Apr 2005 09:50 AM
DataSet Loses Row. It's true an terrible. =?Utf-8?B?TWF1cmljaW8gUGlyZXM=?= Microsoft ADO .NET 8 24th Jan 2005 06:23 PM
!! Terrible use of UserControl own DataSet propery !! mcp@nospam.isa.com.pl Microsoft Dot NET Framework Forms 0 1st Dec 2003 02:00 PM
Problem updating a dataset table row Karl Microsoft ADO .NET 1 27th Nov 2003 10:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 AM.