Click or drag to resize

BcfRelationFindParentRow Method

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

Returns parent row with matching key values.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta6
Syntax
public BcfRow FindParentRow(
	params Object[] key
)

Parameters

key
Type: SystemObject
The key values

Return Value

Type: BcfRow
The parent row with matching key values if found; otherwise null.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentExceptionThe relation has no key columns defined.
InvalidOperationException

key 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 false. If you do so; use FindParentRows(Object) to get all rows with matching key.

Version Information

BCF

Supported in: 4.0
See Also