Click or drag to resize

BcfRowDeleteRows Method

Deletes specified rows. The operation is faster than deleting each single row by Delete.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public static void DeleteRows(
	IEnumerable<BcfRow> rows
)

Parameters

rows
Type: System.Collections.GenericIEnumerableBcfRow
The rows to delete
Exceptions
ExceptionCondition
ArgumentNullExceptionrows is .
ArgumentException

rows contains rows from different datasets

or

Al least one row in rows has RowState is other than Valid or Deleted

InvalidOperationException

BcfDataSet is Locked.

BcfUpdateExceptionSee BcfUpdateException.
Remarks
DeleteRows(IEnumerableBcfRow) is not thread-save.
Examples
The following code will delete all Rows of the BcfTable 'MyTable'.
BcfRow.DeleteRows(MyTable.Rows);
See Also