Click or drag to resize

BcfDataSetCreateTempDataSet Method

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

Creates an empty dataset with a compatible schema but without functions and rules.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public BcfDataSet CreateTempDataSet(
	Func<BcfColumn, bool> columnPredicate = null,
	Nullable<BcfRelationRule> updateRule = null,
	Nullable<BcfRelationRule> deleteRule = null
)

Parameters

columnPredicate (Optional)
Type: SystemFuncBcfColumn, Boolean
A function to test each column for a condition.
updateRule (Optional)
Type: SystemNullableBcfRelationRule
deleteRule (Optional)
Type: SystemNullableBcfRelationRule

Return Value

Type: BcfDataSet
An empty dataset with a compatible schema but without functions and rules.
Remarks

The created dataset will contain all tables and relations. Columns - but not keycolumns - can be filtered by columnPredicate. Optimizer generated columns are always filtered out.

The options-objects of Table, Relation, Column and Rule will be typed as Object an set to null. The special column properties are not copied except: DefaultValue and Sequence. Properties like Converter, Formatter, DiscardAction or ContentEqualityComparison will be null.

The created dataset will not support file based undo.

See Also