Click or drag to resize

BcfRelationFindParentRow Method

Returns parent row with matching key values.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public BcfRow FindParentRow(
	params Object[] keyValues
)

Parameters

keyValues
Type: SystemObject
The key values.

Return Value

Type: BcfRow
The parent row with matching key values if found; otherwise .
Exceptions
ExceptionCondition
ArgumentNullExceptionkeyValues is .
ArgumentException

keyValues length must match the number of key columns

or

Failed to convert an object in keyValues into column type using TryConvertAndFormatObject(Object, Object)

InvalidOperationException

keyValues array length does not match key column count.

or

There are more than one row with matching key. This can be done within a transaction by setting transactions EnforceConstraints to . If you do so; use FindParentRows(Object) to get all rows with matching key.

BcfValueConstraintExceptionFailed to convert an object in keyValues into column type using TryConvertAndFormatObject(Object, Object)
See Also