/// <summary> /// Create new instance of <see cref="DataSeriesRepository"/> /// </summary> /// <param name="dbType">The type of the database (SQLite, SQLServer, ...)</param> /// <param name="connectionString">The connection string</param> public DataSeriesRepository(DatabaseTypes dbType, string connectionString) : base(dbType, connectionString) { _sitesRepository = new SitesRepository(dbType, connectionString); _variablesRepository = new VariablesRepository(dbType, connectionString); _methodsRepository = new MethodsRepository(dbType, connectionString); _qualityControlLevelsRepository = new QualityControlLevelsRepository(dbType, connectionString); _sourcesRepository = new SourcesRepository(dbType, connectionString); }
/// <summary> /// Create new instance of <see cref="DataSeriesRepository"/> /// </summary> /// <param name="db">The DbOperations object for handling the database</param> public DataSeriesRepository(IHydroDbOperations db) : base(db) { _sitesRepository = new SitesRepository(db); _variablesRepository = new VariablesRepository(db); _methodsRepository = new MethodsRepository(db); _qualityControlLevelsRepository = new QualityControlLevelsRepository(db); _sourcesRepository = new SourcesRepository(db); }
public VariablesModule(IVariablesRepository variablesStore) { _variablesStore = variablesStore; }
public VariablesController(IVariablesRepository variablesStore) { VariablesStore = variablesStore; }
public ExecutorContext(IVariablesRepository variablesRepository, IFunctionsRepository functionsRepository) { _variablesRepository = variablesRepository; _functionsRepository = functionsRepository; }
public GlobalVariablesModule(IVariablesRepository variablesStore, IScriptEngine scriptEngine) { _variablesStore = variablesStore; _scriptEngine = scriptEngine; }
public VariablesServerMethods(IVariablesRepository variablesStore, DataEventDispatcher eventDispatcher) { EventDispatcher = eventDispatcher; VariablesStore = variablesStore as VariablesRepository; }
public VariablesController(IVariablesRepository _Context) { Context = _Context; }