Click or drag to resize

BcfDataSetDiff Method

Evaluates the difference between this an specified otherDataSet.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public BcfChangeSet Diff(
	BcfDataSet otherDataSet,
	Func<BcfTable, bool> tablePredicate = null,
	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

otherDataSet
Type: CalculationWorks.BusinessModelBcfDataSet
The dataset to compare.
tablePredicate (Optional)
Type: SystemFuncBcfTable, Boolean
A table predicate.
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 otherDataSets 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.

Return Value

Type: BcfChangeSet
The difference between this an specified otherDataSet.
Exceptions
ExceptionCondition
ArgumentNullExceptionotherDataSet 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 otherDataSet.

See Also