Click or drag to resize

BcfRowDeleteRows Method

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

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.0.0-beta7
Syntax
public static void DeleteRows(
	IEnumerable<BcfRow> rows
)

Parameters

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

rows contains rows from different datasets

InvalidOperationException

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

or

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