Updating DB with large collections

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: gwenda (gwenda_at_discussions.microsoft.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 13:07:02 -0700

Hi,
My application is composed of business entities which are in the form of
classes instances. Some of these entities contains large arraylists of other
entities. These entities are being sent to the client - where the user might
add/modify/delete some items in the arraylists. Natuaraly, I don't want to
send to the DB the part of the entities which the user hadn't changed.
I'm keeping a copy of the original entity in my middle tier so when the
modified entity is returned from the client I can check what was changed and
according to this decide what to send to my data layer.
The question is what would be the best method to do the comparison?
I was advised to use dataset. I've tried to serialize my arraylists - both
of the original object and the modified one - into datasets and use the merge
method. But I couldn't get it to work (note that the client is not getting a
dataset but rather a class instance). Is there a way to make it work
following the above scenario? If there isn't what would be the most
appropriate way to perform that kind of operation?
Thanks,
Gwenda



Relevant Pages

  • Re: Return Custom Collection and Web Services
    ... Datagrid will bound to Properties not field. ... from the client side. ... do Web Services work well with Arraylists? ... >> Is there a way to expose the collection object, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Return Custom Collection and Web Services
    ... Datagrid will bound to Properties not field. ... from the client side. ... do Web Services work well with Arraylists? ... >> Is there a way to expose the collection object, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Return Custom Collection and Web Services
    ... Datagrid will bound to Properties not field. ... from the client side. ... do Web Services work well with Arraylists? ... >> Is there a way to expose the collection object, ...
    (microsoft.public.dotnet.framework.aspnet)