BcfRowRowId Property |
[This is preliminary documentation and is subject to change.]
Namespace: CalculationWorks.BusinessModel
In order to guard against confusion row identifiers are Int32 values between -1 and MinValue, row index are Int32 values between 0 and MaxValue. So a valid (negative Int32) row identifiers can not be a valid (0 or positive Int32) row index and vice versa.
The BcfRow-identifier is unique over the Rows. When restoring a BcfRow via Undo(Int32) or Redo(Int32) the BcfRow-identifier will be restored. This happens when UndoRepository is memory based by reusing the original BcfRow instance; when file based a new BcfRow with same BcfRow-identifier will be created. So you may see multiple rows belonging to the same table and having the same BcfRow-identifier; but maximum one is in Valid state.
BcfRow-identifier are managed internal. There is no reliable way to create a BcfRow with dedicated identifier.