 | BcfDataSetLoad Method (BcfDataSet, FuncBcfColumn, Boolean, BcfRowMergeOption, Boolean, BcfRowComparisonMode, FuncBcfRelation, Boolean) |
Loads rows of specified dataSet and returns the row-map.
Namespace:
CalculationWorks.BusinessModel
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntaxpublic ImmutableDictionary<BcfRow, BcfRow> Load(
BcfDataSet dataSet,
Func<BcfColumn, bool> columnPredicate = null,
BcfRowMergeOption mergeOption = BcfRowMergeOption.Merge,
bool pragmaticNull = false,
BcfRowComparisonMode rowComparisonMode = BcfRowComparisonMode.PrimaryKey,
Func<BcfRelation, bool> tryFixChildRelationsPredicate = null
)
Public Function Load (
dataSet As BcfDataSet,
Optional columnPredicate As Func(Of BcfColumn, Boolean) = Nothing,
Optional mergeOption As BcfRowMergeOption = BcfRowMergeOption.Merge,
Optional pragmaticNull As Boolean = false,
Optional rowComparisonMode As BcfRowComparisonMode = BcfRowComparisonMode.PrimaryKey,
Optional tryFixChildRelationsPredicate As Func(Of BcfRelation, Boolean) = Nothing
) As ImmutableDictionary(Of BcfRow, BcfRow)
Parameters
- dataSet
- Type: CalculationWorks.BusinessModelBcfDataSet
The source dataset - columnPredicate (Optional)
- Type: SystemFuncBcfColumn, Boolean
A function to test each column for a condition. - mergeOption (Optional)
- Type: CalculationWorks.BusinessModelBcfRowMergeOption
The merge option. - pragmaticNull (Optional)
- Type: SystemBoolean
to use default(T) as null-value on not nullable columns. - rowComparisonMode (Optional)
- Type: CalculationWorks.BusinessModelBcfRowComparisonMode
The row comparison mode. - tryFixChildRelationsPredicate (Optional)
- Type: SystemFuncBcfRelation, Boolean
A function to test each relation for a condition. If function is or returns it tries to adjust ChildRows.
Return Value
Type:
ImmutableDictionaryBcfRow,
BcfRowThe row-map, a dictionary with rows from specified
dataSet as keys and added/updated rows of this dataSet as values.
Exceptions
See Also