Re: "transactions" on a DataSet object
From: Sahil Malik (contactmethrumyblog_at_nospam.com)
Date: 01/07/05
- Next message: Sahil Malik: "Re: filtering the data collected in DataReader"
- Previous message: Amir Massourian: "Re: DataTable.Select method bug (?) with .net framework 1.1 SP1"
- In reply to: cyourch: "Re: "transactions" on a DataSet object"
- Next in thread: W.G. Ryan eMVP: "Re: "transactions" on a DataSet object"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 Jan 2005 21:07:12 -0500
So essentially you also need savepoints in your transaction? No can do !! I
don't think that's possible to do within a dataset without a full deep copy.
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"cyourch" <cyourch@discussions.microsoft.com> wrote in message
news:53DEE8CB-8616-4226-A9B0-45EB998F25AE@microsoft.com...
> No. That will throw away any changes that are pending just before I would
> start my "transaction".
>
> "David Browne" wrote:
>
>>
>> "cyourch" <cyourch@discussions.microsoft.com> wrote in message
>> news:57EF08A4-2015-4B9B-A74A-682DF6588574@microsoft.com...
>> > Hi,
>> >
>> > What I want to do is to somehow start a "transaction" on a DataSet
>> > object.
>> > Once the "transaction" is started I will be making changes to the
>> > DataSet.
>> > If
>> > the user wants to save the changes then I essentially don't need to do
>> > anything with the DataSet. BUT, if the user wants to throw away all
>> > changes
>> > then I want to revert back to the state the DataSet was in before the
>> > "transaction" was started. I can always make a copy in memory of the
>> > DataSet
>> > but that seems to be resource intensive. Are there any other ways to
>> > save
>> > the
>> > state/date of the DataSet and then restore it back to this state?
>> >
>>
>> DataSet.RejectChanges rolls back all changes since the last
>> DataSet.AcceptChanges.
>>
>> David
>>
>>
>>
- Next message: Sahil Malik: "Re: filtering the data collected in DataReader"
- Previous message: Amir Massourian: "Re: DataTable.Select method bug (?) with .net framework 1.1 SP1"
- In reply to: cyourch: "Re: "transactions" on a DataSet object"
- Next in thread: W.G. Ryan eMVP: "Re: "transactions" on a DataSet object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|