|
BcfTableViewFactoryRegisterViewTypeTTableViewBase Method |
Registers the type of the view.
Namespace: CalculationWorks.ViewModel.WindowsAssembly: CalculationWorks.ViewModel.Windows (in CalculationWorks.ViewModel.Windows.dll) Version: 3.0.2.0
Syntax public void RegisterViewType<TTableViewBase>(
string tableName,
Func<BcfTableViewBuilder, TTableViewBase> viewConstructor,
IEnumerable<string> reflectedColumns = null,
IDictionary<string, string> reflectedChildViews = null,
IDictionary<string, string> reflectedParentRowViews = null
)
where TTableViewBase : BcfTableViewBase
Public Sub RegisterViewType(Of TTableViewBase As BcfTableViewBase) (
tableName As String,
viewConstructor As Func(Of BcfTableViewBuilder, TTableViewBase),
Optional reflectedColumns As IEnumerable(Of String) = Nothing,
Optional reflectedChildViews As IDictionary(Of String, String) = Nothing,
Optional reflectedParentRowViews As IDictionary(Of String, String) = Nothing
)
public:
generic<typename TTableViewBase>
where TTableViewBase : BcfTableViewBase
void RegisterViewType(
String^ tableName,
Func<BcfTableViewBuilder^, TTableViewBase>^ viewConstructor,
IEnumerable<String^>^ reflectedColumns = nullptr,
IDictionary<String^, String^>^ reflectedChildViews = nullptr,
IDictionary<String^, String^>^ reflectedParentRowViews = nullptr
)
member RegisterViewType :
tableName : string *
viewConstructor : Func<BcfTableViewBuilder, 'TTableViewBase> *
?reflectedColumns : IEnumerable<string> *
?reflectedChildViews : IDictionary<string, string> *
?reflectedParentRowViews : IDictionary<string, string>
(* Defaults:
let _reflectedColumns = defaultArg reflectedColumns null
let _reflectedChildViews = defaultArg reflectedChildViews null
let _reflectedParentRowViews = defaultArg reflectedParentRowViews null
*)
-> unit when 'TTableViewBase : BcfTableViewBase
Parameters
- tableName
- Type: SystemString
Name of the table. - viewConstructor
- Type: SystemFuncBcfTableViewBuilder, TTableViewBase
The view constructor. - reflectedColumns (Optional)
- Type: System.Collections.GenericIEnumerableString
The reflected columns. - reflectedChildViews (Optional)
- Type: System.Collections.GenericIDictionaryString, String
The reflected child views. - reflectedParentRowViews (Optional)
- Type: System.Collections.GenericIDictionaryString, String
The reflected parent row views.
Type Parameters
- TTableViewBase
- The type of the table view base.
Exceptions Version Information CalculationWorks.ViewModel.Windows
Supported in: 3.0, 2.1, 2.0
See Also