 | BcfRowViewRepositoryAddChildRowViewProperties Method |
Adds child-row properties and returns a list containing added propertydescriptors.
Namespace:
CalculationWorks.ViewModel.Forms
Assembly:
CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 4.2.0
Syntaxpublic List<PropertyDescriptor> AddChildRowViewProperties(
BcfRelation relation,
Func<string, bool> propertyFilter = null
)
Public Function AddChildRowViewProperties (
relation As BcfRelation,
Optional propertyFilter As Func(Of String, Boolean) = Nothing
) As List(Of PropertyDescriptor)
Parameters
- relation
- Type: CalculationWorks.BusinessModelBcfRelation
The relation. - propertyFilter (Optional)
- Type: SystemFuncString, Boolean
A function filtering the properties by name.
Return Value
Type:
ListPropertyDescriptorA list containing added propertydescriptors
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | relation is . |
| ArgumentException | This collection is not parent-end of specified relation
or
The table on relation child end is not reflected by view-manager. |
Remarks
The added property names are:
$"Child-{ReflectedChildRelations.GetPropertyName(relation)}-{propertyName}"
Methods accepting/respecting added properties:
Adding and removing properties may be slow when having many databindings and rows.
See Also