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

Editorial / Best Answer

Lavanyaaru  

  • Member Since Jan-2008 | 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

Give your answer:

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

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions