Click or drag to resize
CalculationWorks Logo
BcfTableViewFactoryRegisterViewTypeTTableViewBase Method (String, FuncBcfTableViewBuilder, TTableViewBase, IEnumerableString, IDictionaryString, String, IDictionaryString, String)
Registers the type of the view.

Namespace: CalculationWorks.ViewModel.Forms
Assembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 3.2.1.2
Syntax
public void RegisterViewType<TTableViewBase>(
	string tableName,
	Func<BcfTableViewBuilder, TTableViewBase> viewConstructor,
	IEnumerable<string> reflectedColumns,
	IDictionary<string, string> reflectedChildViews,
	IDictionary<string, string> reflectedParentRowViews
)
where 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
ExceptionCondition
ArgumentNullException

tableName

or

viewConstructor

InvalidOperationException

Instance is already in use.

or

TTableViewBase is abstract

Version Information

CalculationWorks.ViewModel.Forms

Supported in: 3.2, 3.0
See Also