Click or drag to resize

BcfDataSetCreateTempDataSet Method

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.2.0
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
UpdateRule of all Relations in created dataset will be set to specified value.
deleteRule (Optional)
Type: SystemNullableBcfRelationRule
DeleteRule of all Relations in created dataset will be set to specified value.

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 . This special properties are copied: DefaultValue and Sequence.

Properties: Trigger, Converter, Formatter, DiscardAction and ContentEqualityComparison are not copied.

The created dataset will not support file based undo.

See Also