 | BcfReflectedRowViewPropertyDescriptor Constructor |
[This is preliminary documentation and is subject to change.]
Infrastructure. The member supports the infrastructure and is not intended to be used directly from your code.
Namespace:
CalculationWorks.ViewModel.Forms
Assembly:
CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 4.0.0-beta7
Syntaxpublic BcfReflectedRowViewPropertyDescriptor(
string targetPropertyName,
string sourcePropertyName,
BcfRelation relation,
bool sourceTableIsParent,
Predicate<BcfRowView> sourceRowViewFilter,
Action<BcfRowView, Object> createSourceRowAndSetValue,
Object noSourceRowViewValue,
Action<BcfRowView, Object> setValueOrDeleteSourceRowView,
bool readOnly,
Type sourcePropertyType
)
Public Sub New (
targetPropertyName As String,
sourcePropertyName As String,
relation As BcfRelation,
sourceTableIsParent As Boolean,
sourceRowViewFilter As Predicate(Of BcfRowView),
createSourceRowAndSetValue As Action(Of BcfRowView, Object),
noSourceRowViewValue As Object,
setValueOrDeleteSourceRowView As Action(Of BcfRowView, Object),
readOnly As Boolean,
sourcePropertyType As Type
)
Parameters
- targetPropertyName
- Type: SystemString
Name of the property to create. - sourcePropertyName
- Type: SystemString
Name of the source property. - relation
- Type: CalculationWorks.BusinessModelBcfRelation
The relation. - sourceTableIsParent
- Type: SystemBoolean
The direction for relation access. - sourceRowViewFilter
- Type: SystemPredicateBcfRowView
The source filter (used only if sourceTableIsParent is false.) - createSourceRowAndSetValue
- Type: SystemActionBcfRowView, Object
Action creates the rowview and sets the value (only called if source-rowview not found). - noSourceRowViewValue
- Type: SystemObject
Default value to return when no source-rowview is found. - setValueOrDeleteSourceRowView
- Type: SystemActionBcfRowView, Object
Action setting the property value; deleting the sourcerow is supported. - readOnly
- Type: SystemBoolean
The property appears as read-only. - sourcePropertyType
- Type: SystemType
The property-type of source property.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | targetPropertyName, sourcePropertyName, relation or sourcePropertyType is null. |
See Also