 | BcfDataSetLoad Method (IEnumerableBcfRow, FuncBcfColumn, Boolean, BcfRowMergeOption, Boolean, BcfRowComparisonMode) |
[This is preliminary documentation and is subject to change.]
Loads rows of specified distinctSourceRows and returns the row-map.
Namespace:
CalculationWorks.BusinessModel
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntaxpublic ImmutableDictionary<BcfRow, BcfRow> Load(
IEnumerable<BcfRow> distinctSourceRows,
Func<BcfColumn, bool> columnPredicate = null,
BcfRowMergeOption mergeOption = BcfRowMergeOption.Merge,
bool pragmaticNull = false,
BcfRowComparisonMode rowComparisonMode = BcfRowComparisonMode.PrimaryKey
)
Public Function Load (
distinctSourceRows As IEnumerable(Of BcfRow),
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
) As ImmutableDictionary(Of BcfRow, BcfRow)
Parameters
- distinctSourceRows
- Type: System.Collections.GenericIEnumerableBcfRow
The source rows - 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
true to use default(T) as null-value on not nullable columns. - rowComparisonMode (Optional)
- Type: CalculationWorks.BusinessModelBcfRowComparisonMode
The row comparison mode.
Return Value
Type:
ImmutableDictionaryBcfRow,
BcfRowThe row-map, a dictionary with rows from specified
distinctSourceRows as keys and added/updated rows of this dataSet as values.
Exceptions
Remarks
The method does not adjust ChildRows and ParentRow of added or updated rows.
When using relations with key-columns the related rows will be set up by key-values - but ChildRows may have unexpected order.
See Also