Click or drag to resize

BcfTableDiff Method

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

Evalueates the difference between this an specified otherTable.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
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
false to suppress fomatting otherTables values of before compare.
pragmaticNull (Optional)
Type: SystemBoolean
true 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 otherTable.
Exceptions
ExceptionCondition
ArgumentNullExceptionotherTable is null.
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