Click or drag to resize
CalculationWorks Logo
BcfRelatedRowCellSetRelatedRow Method (BcfRow, Boolean)
Sets the related (parent) row.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 2.1.0.0
Syntax
public void SetRelatedRow(
	BcfRow value,
	bool optimistic
)

Parameters

value
Type: CalculationWorks.BusinessModelBcfRow
The value.
optimistic
Type: SystemBoolean
if set to true operation will be executed in CurrentTransaction and in case of error the transaction has to be discarded (Rollback). Otherwise operation will be executed in a subtransaction of CurrentTransaction in case of error the subtransaction will be discarded without affecting CurrentTransaction. For best performance set optimistic to true. Default is true.
Exceptions
ExceptionCondition
InvalidOperationException

current row has invalid state

given row has invalid state

given row is not in associated parent table

InvalidOperationException

dataset is locked; e.g. BcfDataSet is just switching the current transaction or is undoing/redoing.

do not call this method e.g. from inside BcfFunctionBase, BcfValidatorBase nor IBcfUndoRedoItem

Remarks
The related row must be a valid row in the Relations parent table.
See Also