Click or drag to resize

BcfTableDiff Method

Evaluates the difference between this an specified otherTable.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public BcfChangeSet Diff(
	BcfTable otherTable,
	Func<BcfColumn, bool> columnPredicate = null,
	BcfValueComparisonMode valueComparisonMode = BcfValueComparisonMode.Value,
	bool format = true,
	bool pragmaticNull = false,
	BcfRowComparisonMode rowComparisonMode = BcfRowComparisonMode.PrimaryKey,
	BcfChildRowsComparisonMode childRowsComparisonMode = BcfChildRowsComparisonMode.SequenceEquals,
	Func<BcfRelation, bool> relationPredicate = null
)

Parameters

otherTable
Type: CalculationWorks.BusinessModelBcfTable
The dataset to compare.
columnPredicate (Optional)
Type: SystemFuncBcfColumn, Boolean
A function to test each column for a condition.
valueComparisonMode (Optional)
Type: CalculationWorks.BusinessModelBcfValueComparisonMode
The value comparison mode.
format (Optional)
Type: SystemBoolean
to suppress fomatting otherTables values of before compare.
pragmaticNull (Optional)
Type: SystemBoolean
to use default(T) as null-value on not nullable columns.
rowComparisonMode (Optional)
Type: CalculationWorks.BusinessModelBcfRowComparisonMode
The row comparison mode.
childRowsComparisonMode (Optional)
Type: CalculationWorks.BusinessModelBcfChildRowsComparisonMode
The child row comparison mode.
relationPredicate (Optional)
Type: SystemFuncBcfRelation, Boolean
A relation predicate to ignore specific parent and child relation cells. If omitted all relations with matching relation-name will compared.

Return Value

Type: BcfChangeSet
The difference between this an specified otherTable.
Exceptions
ExceptionCondition
ArgumentNullExceptionotherTable is .
Remarks

For value comparison the column properties (like Converter, Formatter and ContentEqualityComparison) of this instance will be used.

All properties of created BcfChangeSet will contain objects of this instance, except RemovedRows - it contains the rows of otherTable.

See Also