Click or drag to resize

BcfTableLoad Method (Object, Boolean)

Loads the specified values into a row.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public BcfRow Load(
	Object[] values,
	bool update = true
)

Parameters

values
Type: SystemObject
The values.
update (Optional)
Type: SystemBoolean
allows updating row with matching primary key.

Return Value

Type: BcfRow
The BcfRow the values were loaded.

Return Value

Type: BcfRow
The target row (added or modified).
Exceptions
ExceptionCondition
ArgumentNullExceptionvalues is .
InvalidOperationException

BcfDataSet is Locked

or

update is and multiple rows with matching primary keys are found.

BcfUpdateExceptionSee exception for the reason.
Remarks

If update is and a row with matching primary key is found this row will be updated; otherwise values are loaded into a new row.

The updates will be performed in order of column-index (lowest first).

When updating a row with RowState==Validtriggers will be invoked.

See Also