/// <summary> /// Initializes a new instance of the <see cref="SqlServerDataModelProvider"/> class. /// </summary> /// <param name="rootModel">The root data model.</param> /// <param name="dsResolver">The data structure resolver.</param> /// <param name="connectionString">The TSQL Server connection string.</param> /// <param name="mapper">The environment names mapper.</param> public SqlServerDataModelProvider(IDataModelProvider rootModel, DataStructureResolver dsResolver, string connectionString, IEnvironmentMapper mapper) : base(rootModel) { this._dsResolver = dsResolver; this._connStr = connectionString; this._mapper = mapper; }
/// <summary> /// Initializes a new instance of nthe <see cref="DataModelAggregator"/> class. /// </summary> /// <param name="mapper">The environment names mapper.</param> /// <param name="dataModels">The data model collection.</param> public DataModelAggregator(IEnvironmentMapper mapper, params IDataModelProvider[] dataModels) : this(mapper) { if (dataModels != null) { this.DataModelsCollection = dataModels.ToList(); } }
/// <summary> /// Initializes a new instance of nthe <see cref="DataModelAggregator"/> class. /// </summary> /// <param name="defaultNamespace">The default namespace name.</param> /// <param name="mapper">The environment names mapper.</param> /// <param name="dataModels">The data model collection.</param> public DataModelAggregator(string defaultNamespace, IEnvironmentMapper mapper, params IDataModelProvider[] dataModels) : this(defaultNamespace, mapper) { if (dataModels != null) { this.DataModelsCollection = dataModels.ToList(); } }
public TranslationService(ILogger <TranslationService> logger, ITreeGenerator treeGenerator, ISchemaModifiersApplier schemaModifiersApplier, IEnumerable <ILoggerProvider> loggerProviders, IEnumerable <ITargetRenderer> targetRenderers, IDataModelAggregator dataModelAggregator, IEnvironmentMapper mapper) { this.logger = logger; this.treeGenerator = treeGenerator; this.schemaModifiersApplier = schemaModifiersApplier; this.dataModelAggregator = dataModelAggregator; this.mapper = mapper; this.targetRenderers = targetRenderers; }
/// <summary> /// Initializes a new instance of the <see cref="JoinSelectBuilder"/> class. /// </summary> /// <param name="opRendererResolver">The operator renderer resolver.</param> /// <param name="envMapper">The environment names mapper.</param> /// <param name="propagationAlgorithm">The attribute propagation algorithm.</param> public JoinSelectBuilder(OperatorRendererResolver opRendererResolver, IEnvironmentMapper envMapper, IAttributePropagationAlgorithm propagationAlgorithm) { this._opRendererResolver = opRendererResolver; this._envMapper = envMapper; this._propagationAlgorithm = propagationAlgorithm; this.parts = new Dictionary <string, string>(); this.parts.Add("identifiers", string.Empty); this.parts.Add("measures", string.Empty); this.parts.Add("attributes", string.Empty); this.parts.Add("calc", string.Empty); this.parts.Add("source", string.Empty); this.parts.Add("filters", string.Empty); this.parts.Add("group", string.Empty); this.parts.Add("having", string.Empty); this.parts.Add("over", string.Empty); }
/// <summary> /// Initializes a new instance of the <see cref="TsqlTargetRenderer"/> class. /// </summary> /// <param name="schemaResolver">The transformation schema resolver.</param> /// <param name="opRendererResolver">The operator renderer resolver.</param> /// <param name="references">The references manager.</param> /// <param name="tmpTables">The temporary tables informations.</param> /// <param name="mapper">The objects names mapper.</param> /// <param name="configuration">The configuration of the target.</param> /// <param name="envMapper">The environment names mapper.</param> /// <param name="logger">The errors logger.</param> public TsqlTargetRenderer( TransformationSchemaResolver schemaResolver, OperatorRendererResolver opRendererResolver, TemporaryTables tmpTables, IReferencesManager references, IMapper mapper, ITargetConfiguration configuration, IEnvironmentMapper envMapper, ILogger <ITargetRenderer> logger = null) { this._schemaResolver = schemaResolver; this._opRendererResolver = opRendererResolver; this._tmpTables = tmpTables; this._refs = references; this._mapper = mapper; this._conf = configuration; this._envMapper = envMapper; this._logger = logger; }
/// <summary> /// Initializes a new instance of nthe <see cref="DataModelAggregator"/> class. /// </summary> /// <param name="defaultNamespace">The default namespace name.</param> /// <param name="mapper">The environment names mapper.</param> public DataModelAggregator(string defaultNamespace, IEnvironmentMapper mapper) : this(mapper) { this.DefaultNamespace = defaultNamespace; this.EnvironmentMapper = mapper; }
/// <summary> /// Initializes a new instance of nthe <see cref="DataModelAggregator"/> class. /// </summary> /// <param name="mapper">The environment names mapper.</param> public DataModelAggregator(IEnvironmentMapper mapper) { this.EnvironmentMapper = mapper; this.DataModelsCollection = new List <IDataModelProvider>(); }
/// <summary> /// Initializes a new instance of the <see cref="GetOperatorRenderer"/> class. /// </summary> /// <param name="envMapper">The environment names mapper.</param> public GetOperatorRenderer(IEnvironmentMapper envMapper) { this._envMapper = envMapper; }
/// <summary> /// Initializes a new instance of the <see cref="ReferenceOperatorRenderer"/> class. /// </summary> /// <param name="envMapper">The environment names mapper.</param> public ReferenceOperatorRenderer(IEnvironmentMapper envMapper) { this._envMapper = envMapper; }