Click or drag to resize

BcfTableLoad Method (IEnumerableBcfRow, BcfRowMergeOption, BcfRowComparisonMode, FuncBcfColumn, Boolean, Boolean)

Loads cell-values of specified distinctSourceRows.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public ImmutableDictionary<BcfRow, BcfRow> Load(
	IEnumerable<BcfRow> distinctSourceRows,
	BcfRowMergeOption mergeOption = BcfRowMergeOption.Merge,
	BcfRowComparisonMode rowComparisonMode = BcfRowComparisonMode.PrimaryKey,
	Func<BcfColumn, bool> columnPredicate = null,
	bool pragmaticNull = false
)

Parameters

distinctSourceRows
Type: System.Collections.GenericIEnumerableBcfRow
The source rows.
mergeOption (Optional)
Type: CalculationWorks.BusinessModelBcfRowMergeOption
The merge option.
rowComparisonMode (Optional)
Type: CalculationWorks.BusinessModelBcfRowComparisonMode
The row comparison mode.
columnPredicate (Optional)
Type: SystemFuncBcfColumn, Boolean
A function to test each column for a condition.
pragmaticNull (Optional)
Type: SystemBoolean
to use default(T) as null-value on not nullable columns.

Return Value

Type: ImmutableDictionaryBcfRow, BcfRow
The row-map, a dictionary with rows from specified distinctSourceRows as keys and added/updated rows of this dataSet as values.
Exceptions
ExceptionCondition
ArgumentNullExceptiondistinctSourceRows is .
ArgumentExceptiondistinctSourceRows contains non-distinct items.
InvalidOperationException

BcfDataSet is Locked

BcfUpdateExceptionSee exception for the reason.
See Also