コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
ファイル: VariableCommand.cs プロジェクト: windischb/middler
 public VariablesModule(IVariablesRepository variablesStore)
 {
     _variablesStore = variablesStore;
 }
コード例 #4
0
 public VariablesController(IVariablesRepository variablesStore)
 {
     VariablesStore = variablesStore;
 }
コード例 #5
0
ファイル: ExecutorContext.cs プロジェクト: Snuk/Recount
 public ExecutorContext(IVariablesRepository variablesRepository, IFunctionsRepository functionsRepository)
 {
     _variablesRepository = variablesRepository;
     _functionsRepository = functionsRepository;
 }
コード例 #6
0
 public GlobalVariablesModule(IVariablesRepository variablesStore, IScriptEngine scriptEngine)
 {
     _variablesStore = variablesStore;
     _scriptEngine   = scriptEngine;
 }
コード例 #7
0
 public VariablesServerMethods(IVariablesRepository variablesStore, DataEventDispatcher eventDispatcher)
 {
     EventDispatcher = eventDispatcher;
     VariablesStore  = variablesStore as VariablesRepository;
 }
コード例 #8
0
 public VariablesController(IVariablesRepository _Context)
 {
     Context = _Context;
 }