Click or drag to resize

BcfTableViewFactoryRegisterViewTypeTTableView, TRowView Method

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

Registers the type of the view.

Namespace:  CalculationWorks.ViewModel.Forms
Assembly:  CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 4.0.0-beta6
Syntax
public void RegisterViewType<TTableView, TRowView>(
	string tableName,
	Func<BcfTableViewBuilder, TTableView> tableViewConstructor,
	Func<BcfRowViewBuilder, TRowView> rowViewConstructor,
	IEnumerable<string> reflectedColumns,
	IDictionary<string, string> reflectedChildViews,
	IDictionary<string, string> reflectedParentRowViews
)
where TTableView : BcfTableViewBase<TRowView>
where TRowView : BcfRowView

Parameters

tableName
Type: SystemString
Name of the table.
tableViewConstructor
Type: SystemFuncBcfTableViewBuilder, TTableView
The table-view constructor.
rowViewConstructor
Type: SystemFuncBcfRowViewBuilder, TRowView
The row-view constructor.
reflectedColumns
Type: System.Collections.GenericIEnumerableString
List of managed column names.
reflectedChildViews
Type: System.Collections.GenericIDictionaryString, String
Dictionary of managed child views with relation name as key and property name as value.
reflectedParentRowViews
Type: System.Collections.GenericIDictionaryString, String
Dictionary of managed parent row views with relation name as key and property name as value.

Type Parameters

TTableView
The table-view type.
TRowView
The row-view type.
Exceptions
ExceptionCondition
ArgumentNullExceptionAny parameter is null
InvalidOperationExceptionInstance is already in use.
Version Information

Forms

Supported in: 4.0
See Also