Click or drag to resize

BcfRowViewRepositoryAddChildRowViewProperties Method

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

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.0.0-beta7
Syntax
public List<PropertyDescriptor> AddChildRowViewProperties(
	BcfRelation relation,
	Func<string, bool> propertyFilter = null
)

Parameters

relation
Type: CalculationWorks.BusinessModelBcfRelation
The relation.
propertyFilter (Optional)
Type: SystemFuncString, Boolean
A function filtering the properties by name.

Return Value

Type: ListPropertyDescriptor
A list containing added propertydescriptors
Exceptions
ExceptionCondition
ArgumentNullExceptionrelation is null.
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