TessaListViewHelperConvertToListViewModel(IEnumerableString, IEnumerableDbType, IEnumerableIDictionaryString, Object, IViewMetadata, Boolean, FuncObservableCollectionIRowViewModel, ListTessaGridColumnViewModel, IViewMetadata, IViewsTessaListViewModel) - метод |
The convert to list view model.
Пространство имён:
Tessa.UI.Views
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public static IViewsTessaListViewModel ConvertToListViewModel(
IEnumerable<string> columnNames,
IEnumerable<DbType> dataTypes,
IEnumerable<IDictionary<string, Object>> data,
IViewMetadata viewMetadata,
bool showHiddenColumns,
Func<ObservableCollection<IRowViewModel>, List<TessaGridColumnViewModel>, IViewMetadata, IViewsTessaListViewModel> modelFactory
)
Public Shared Function ConvertToListViewModel (
columnNames As IEnumerable(Of String),
dataTypes As IEnumerable(Of DbType),
data As IEnumerable(Of IDictionary(Of String, Object)),
viewMetadata As IViewMetadata,
showHiddenColumns As Boolean,
modelFactory As Func(Of ObservableCollection(Of IRowViewModel), List(Of TessaGridColumnViewModel), IViewMetadata, IViewsTessaListViewModel)
) As IViewsTessaListViewModel
public:
static IViewsTessaListViewModel^ ConvertToListViewModel(
IEnumerable<String^>^ columnNames,
IEnumerable<DbType>^ dataTypes,
IEnumerable<IDictionary<String^, Object^>^>^ data,
IViewMetadata^ viewMetadata,
bool showHiddenColumns,
Func<ObservableCollection<IRowViewModel^>^, List<TessaGridColumnViewModel^>^, IViewMetadata^, IViewsTessaListViewModel^>^ modelFactory
)
static member ConvertToListViewModel :
columnNames : IEnumerable<string> *
dataTypes : IEnumerable<DbType> *
data : IEnumerable<IDictionary<string, Object>> *
viewMetadata : IViewMetadata *
showHiddenColumns : bool *
modelFactory : Func<ObservableCollection<IRowViewModel>, List<TessaGridColumnViewModel>, IViewMetadata, IViewsTessaListViewModel> -> IViewsTessaListViewModel
Параметры
- columnNames
- Тип: System.Collections.GenericIEnumerableString
The column names. - dataTypes
- Тип: System.Collections.GenericIEnumerableDbType
The data types. - data
- Тип: System.Collections.GenericIEnumerableIDictionaryString, Object
The data. - viewMetadata
- Тип: Tessa.Views.MetadataIViewMetadata
The view metadata. - showHiddenColumns
- Тип: SystemBoolean
The show hidden columns. - modelFactory
- Тип: SystemFuncObservableCollectionIRowViewModel, ListTessaGridColumnViewModel, IViewMetadata, IViewsTessaListViewModel
The model factory.
Возвращаемое значение
Тип:
IViewsTessaListViewModelThe
IViewsTessaListViewModel.
См. также