 | BcfTableViewFactoryRegisterViewTypeTTableView, TRowView Method |
Registers the type of the view.
Namespace:
CalculationWorks.ViewModel.Windows
Assembly:
CalculationWorks.ViewModel.Windows (in CalculationWorks.ViewModel.Windows.dll) Version: 4.2.0
Syntaxpublic 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
Public Sub RegisterViewType(Of TTableView As BcfTableViewBase(Of TRowView), TRowView As BcfRowView) (
tableName As String,
tableViewConstructor As Func(Of BcfTableViewBuilder, TTableView),
rowViewConstructor As Func(Of BcfRowViewBuilder, TRowView),
reflectedColumns As IEnumerable(Of String),
reflectedChildViews As IDictionary(Of String, String),
reflectedParentRowViews As IDictionary(Of String, String)
)
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
See Also