| |
GeekInterview.com > Interview Questions > Microsoft > ADO.NET 2.0
| Print | |
Question: What is meant my datarow versioning in ADO.Net. Where it is used?
|
| January 01, 2008 20:40:45 |
#1 |
| Lavanyaaru |
Member Since: January 2008 Total Comments: 10 |
RE: What is meant my datarow versioning in ADO.Net. Where it is used? |
There are 3 versions for each DataRow object. 1.Original 2.Current 3.Proposed
The HasVersion( ) method of the DataRow can determine whether a specific version of the row exists. If the version exists, column values for it can be retrieved using one of the three overloads of the DataRow indexer
The Original version contains the values that were loaded into the row.
The Current version contains the latest version of the data, including the changes made since the data was originally loaded. The Original version isn't available for newly created rows.
A Proposed row version is made available while the row is in edit mode and contains the changes that have been made to the row while it was in edit mode
If CancelEdit( ) , RejectChanges() methods are called, the values in the Proposed version are simply discarded |
| |
Back To Question | |