TessaViewModelAdapter - конструктор
Пространство имён: Tessa.Views.ParserСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public TessaViewModelAdapter(
Dbms dbms,
[NotNullAttribute] Version dbmsVersion,
[NotNullAttribute] TessaViewModel model,
[NotNullAttribute] Func<IViewQueryExecutor> executorFactory,
[NotNullAttribute] Func<ISession> sessionAccessor,
[NotNullAttribute] IQueryGeneratorFactory queryGeneratorFactory,
[NotNullAttribute] Func<IValidationResultBuilder> validationResultBuilderFactory,
[NotNullAttribute] ViewMetadataEvaluationContextFactory evaluationContextFactory,
[NotNullAttribute] IDbScope dbScope,
[NotNullAttribute] NormalizeParameterNameResolver normalizeParameterNameResolver,
[NotNullAttribute] IViewGetDataExecutor viewGetDataExecutor,
[NotNullAttribute] IViewMetadataConverter<IJsonViewMetadata, IViewMetadata> metadataConverter,
[NotNullAttribute] IDeputiesManagementSettingsProvider deputiesManagementSettingsProvider,
[NotNullAttribute] IErrorManager errorManager,
[NotNullAttribute] ICardCache cardCache,
[CanBeNullAttribute] TessaMetrics metrics = null
)
Public Sub New (
dbms As Dbms,
<NotNullAttribute> dbmsVersion As Version,
<NotNullAttribute> model As TessaViewModel,
<NotNullAttribute> executorFactory As Func(Of IViewQueryExecutor),
<NotNullAttribute> sessionAccessor As Func(Of ISession),
<NotNullAttribute> queryGeneratorFactory As IQueryGeneratorFactory,
<NotNullAttribute> validationResultBuilderFactory As Func(Of IValidationResultBuilder),
<NotNullAttribute> evaluationContextFactory As ViewMetadataEvaluationContextFactory,
<NotNullAttribute> dbScope As IDbScope,
<NotNullAttribute> normalizeParameterNameResolver As NormalizeParameterNameResolver,
<NotNullAttribute> viewGetDataExecutor As IViewGetDataExecutor,
<NotNullAttribute> metadataConverter As IViewMetadataConverter(Of IJsonViewMetadata, IViewMetadata),
<NotNullAttribute> deputiesManagementSettingsProvider As IDeputiesManagementSettingsProvider,
<NotNullAttribute> errorManager As IErrorManager,
<NotNullAttribute> cardCache As ICardCache,
<CanBeNullAttribute> Optional metrics As TessaMetrics = Nothing
)
public:
TessaViewModelAdapter(
Dbms dbms,
[NotNullAttribute] Version^ dbmsVersion,
[NotNullAttribute] TessaViewModel^ model,
[NotNullAttribute] Func<IViewQueryExecutor^>^ executorFactory,
[NotNullAttribute] Func<ISession^>^ sessionAccessor,
[NotNullAttribute] IQueryGeneratorFactory^ queryGeneratorFactory,
[NotNullAttribute] Func<IValidationResultBuilder^>^ validationResultBuilderFactory,
[NotNullAttribute] ViewMetadataEvaluationContextFactory^ evaluationContextFactory,
[NotNullAttribute] IDbScope^ dbScope,
[NotNullAttribute] NormalizeParameterNameResolver^ normalizeParameterNameResolver,
[NotNullAttribute] IViewGetDataExecutor^ viewGetDataExecutor,
[NotNullAttribute] IViewMetadataConverter<IJsonViewMetadata^, IViewMetadata^>^ metadataConverter,
[NotNullAttribute] IDeputiesManagementSettingsProvider^ deputiesManagementSettingsProvider,
[NotNullAttribute] IErrorManager^ errorManager,
[NotNullAttribute] ICardCache^ cardCache,
[CanBeNullAttribute] TessaMetrics^ metrics = nullptr
)
new :
dbms : Dbms *
[<NotNullAttribute>] dbmsVersion : Version *
[<NotNullAttribute>] model : TessaViewModel *
[<NotNullAttribute>] executorFactory : Func<IViewQueryExecutor> *
[<NotNullAttribute>] sessionAccessor : Func<ISession> *
[<NotNullAttribute>] queryGeneratorFactory : IQueryGeneratorFactory *
[<NotNullAttribute>] validationResultBuilderFactory : Func<IValidationResultBuilder> *
[<NotNullAttribute>] evaluationContextFactory : ViewMetadataEvaluationContextFactory *
[<NotNullAttribute>] dbScope : IDbScope *
[<NotNullAttribute>] normalizeParameterNameResolver : NormalizeParameterNameResolver *
[<NotNullAttribute>] viewGetDataExecutor : IViewGetDataExecutor *
[<NotNullAttribute>] metadataConverter : IViewMetadataConverter<IJsonViewMetadata, IViewMetadata> *
[<NotNullAttribute>] deputiesManagementSettingsProvider : IDeputiesManagementSettingsProvider *
[<NotNullAttribute>] errorManager : IErrorManager *
[<NotNullAttribute>] cardCache : ICardCache *
[<CanBeNullAttribute>] ?metrics : TessaMetrics
(* Defaults:
let _metrics = defaultArg metrics null
*)
-> TessaViewModelAdapter
Параметры
- dbms Dbms
-
Тип используемой базы данных по умолчанию
- dbmsVersion Version
-
Версия СУБД для базы данных по умолчанию
- model TessaViewModel
-
Преобразуемая модель
- executorFactory FuncIViewQueryExecutor
-
Фабрика создания исполнителя запроса
- sessionAccessor FuncISession
-
Поставщик сессии
- queryGeneratorFactory IQueryGeneratorFactory
-
Фабрика создания генератора текстов представлений
- validationResultBuilderFactory FuncIValidationResultBuilder
-
Фабрика создания построителя результатов валидации
- evaluationContextFactory ViewMetadataEvaluationContextFactory
-
The evaluation Context Factory.
- dbScope IDbScope
-
The db Scope.
- normalizeParameterNameResolver NormalizeParameterNameResolver
- Функция возвращающая функцию обработки параметров
- viewGetDataExecutor IViewGetDataExecutor
- исполнитель представлений
- metadataConverter IViewMetadataConverterIJsonViewMetadata, IViewMetadata
- Конвертер объектов метаданных из json формата.
- deputiesManagementSettingsProvider IDeputiesManagementSettingsProvider
- errorManager IErrorManager
- Объект, управляющий отправкой и получением ошибок.
- cardCache ICardCache
- Потокобезопасный кэш с карточками и дополнительными настройками.
- metrics TessaMetrics (Optional)