Click or drag to resize

BcfPrimaryKeyFind Method

Finds a BcfRow with the specified primary key values.

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

Parameters

keyValues
Type: SystemObject
The primary key values.

Return Value

Type: BcfRow
The row with the specified primary 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 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 Select(Object) to get all rows with matching key.
See Also