BcfTransactionCommit Method |
[This is preliminary documentation and is subject to change.]
Namespace: CalculationWorks.BusinessModel
Exception | Condition |
---|---|
InvalidOperationException | IsCurrent is false orTransaction caused an invalid state and must rollback (see: MustRollback) or |
BcfUpdateException | The implementations specifies the details. |
Commit works different on subtransactions and transactions. When a subtransaction commits, its state will be merged into its parent transaction state. When a transaction commits while undo/redo is enabled, the transaction will be added to UndoRepository - except the transaction is empty*.
empty*: The transaction contains only cell-updates on columns with == false or (only when using file-based undo) fault-changed items.
IBcfUndoRedoItemValueChanged-items on columns with ShouldPersist == true causes CurrentDataStateId-renewal. This adds a BcfUndoRedoItemStateId to transaction. So the transaction is never empty when updated cells of columns having ShouldPersist == true.
Note |
---|
CurrentDataStateId-renewal can be disabled by setting ManageStateId = false. |