Click or drag to resize

BcfRowRowId Property

[This is preliminary documentation and is subject to change.]

Gets the BcfRow-identifier unique in the BcfTable the BcfRow belongs to.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public int RowId { get; }

Return Value

Type: Int32
The BcfRow-identifier
Remarks

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.

See Also