GeekInterview.com
Series: Subject: Topic:
Question: 22 of 58

What is meant my datarow versioning in ADO.Net. Where it is used?

Asked by: Interview Candidate | Asked on: May 11th, 2007

Editorial / Best Answer

Answered by: Lavanyaaru

View all questions by Lavanyaaru   View all answers by Lavanyaaru

Member Since Jan-2008 | Answered On : Jan 29th, 2008

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

Showing Answers 1 - 1 of 1 Answers

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

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.