Click or drag to resize

BcfTriggerT Delegate

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

Performs custom operations when a Value should be updated.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public delegate void BcfTrigger<T>(
	BcfCell<T> cell,
	T proposedValue,
	BcfUpdateCurrentCell update
)

Parameters

cell
Type: CalculationWorks.BusinessModelBcfCellT
The cell to update.
proposedValue
Type: T
The value to set.
update
Type: CalculationWorks.BusinessModelBcfUpdateCurrentCell
An action updating the Value.

Type Parameters

T
The value type.
Remarks

A trigger on a computed column will be executed when trying to set the value; not when the computed value will be applied.

Triggers will not execute when RowState != Valid e.g. Setting values of a new row before it is added to table.

When using MicroTransactionMode other than Disabled, each trigger will be executed in a subtransaction.

See Also