Updating DB with large collections
From: gwenda (gwenda_at_discussions.microsoft.com)
Date: 10/13/04
- Next message: Sam Santiago: "Re: Updating DB with large collections"
- Previous message: Sam Santiago: "Re: adding web reference"
- Next in thread: Sam Santiago: "Re: Updating DB with large collections"
- Reply: Sam Santiago: "Re: Updating DB with large collections"
- Reply: gwenda: "RE: Updating DB with large collections"
- Reply: [MSFT]: "RE: Updating DB with large collections"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Sam Santiago: "Re: Updating DB with large collections"
- Previous message: Sam Santiago: "Re: adding web reference"
- Next in thread: Sam Santiago: "Re: Updating DB with large collections"
- Reply: Sam Santiago: "Re: Updating DB with large collections"
- Reply: gwenda: "RE: Updating DB with large collections"
- Reply: [MSFT]: "RE: Updating DB with large collections"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|