 |
| BcfTableViewFactoryRegisterViewTypeTTableViewBase Method (String, FuncBcfTableViewBuilder, TTableViewBase, IEnumerableString, IDictionaryString, String, IDictionaryString, String) |
Registers the type of the view.
Namespace: CalculationWorks.ViewModel.FormsAssembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 3.2.1.2
Syntaxpublic void RegisterViewType<TTableViewBase>(
string tableName,
Func<BcfTableViewBuilder, TTableViewBase> viewConstructor,
IEnumerable<string> reflectedColumns,
IDictionary<string, string> reflectedChildViews,
IDictionary<string, string> reflectedParentRowViews
)
where TTableViewBase : BcfTableViewBase
Public Sub RegisterViewType(Of TTableViewBase As BcfTableViewBase) (
tableName As String,
viewConstructor As Func(Of BcfTableViewBuilder, TTableViewBase),
reflectedColumns As IEnumerable(Of String),
reflectedChildViews As IDictionary(Of String, String),
reflectedParentRowViews As IDictionary(Of String, String)
)
public:
generic<typename TTableViewBase>
where TTableViewBase : BcfTableViewBase
void RegisterViewType(
String^ tableName,
Func<BcfTableViewBuilder^, TTableViewBase>^ viewConstructor,
IEnumerable<String^>^ reflectedColumns,
IDictionary<String^, String^>^ reflectedChildViews,
IDictionary<String^, String^>^ reflectedParentRowViews
)
member RegisterViewType :
tableName : string *
viewConstructor : Func<BcfTableViewBuilder, 'TTableViewBase> *
reflectedColumns : IEnumerable<string> *
reflectedChildViews : IDictionary<string, string> *
reflectedParentRowViews : IDictionary<string, string> -> unit when 'TTableViewBase : BcfTableViewBase
Parameters
- tableName
- Type: SystemString
Name of the table. - viewConstructor
- Type: SystemFuncBcfTableViewBuilder, TTableViewBase
The 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
- TTableViewBase
- The type of the table view base.
Exceptions
Version InformationCalculationWorks.ViewModel.Forms
Supported in: 3.2, 3.0
See Also