Example #1
0
 public virtual void Initialize(IColorConfiguration colorConfig, IDbConnectionConfig dbConnectionConfig)
 {
     this.Initialize(colorConfig);
     if (this.QueryForPath != null)
     {
         this.QueryForPath.Initialize(dbConnectionConfig);
     }
 }
Example #2
0
        public DbConnection(IDbConnection connection, IDbConnectionConfig connectionConfig)
        {
            Disposing = false;

            Connection = connection;

            ConnectionConfig = connectionConfig;
        }
 public virtual void Initialize(IColorConfiguration colorConfig, IDbConnectionConfig dbConnectionConfig)
 {
     foreach (CarouselDatabaseItem item in this.DatabaseCollection)
     {
         item.Initialize(colorConfig);
     }
     foreach (CarouselScriptItem item in this.ScriptCollection)
     {
         item.Initialize(colorConfig);
     }
     foreach (CarouselFolderItem item in this.FolderCollection)
     {
         item.Initialize(colorConfig);
     }
     foreach (CarouselLogItem item in this.LogCollection)
     {
         item.Initialize(colorConfig, dbConnectionConfig);
     }
 }
Example #4
0
 public BrandStorage(IDbConnectionConfig dbConnection, IStorageInit storageInit) : base(storageInit)
 {
     _dbConnection = dbConnection;
     BeginInitDataBase().Wait();
 }
Example #5
0
 public DbContextFactory(IDbConnectionConfig dbConnectionConfig)
 {
     this.dbConnectionConfig = dbConnectionConfig;
 }
Example #6
0
 public QueryForPath(IDbConnectionConfig dbConnectionConfig) : this()
 {
     this.Initialize(dbConnectionConfig);
 }
Example #7
0
 public virtual void Initialize(IDbConnectionConfig dbConnectionConfig)
 {
     this._DbConnectionConfig = dbConnectionConfig;
 }
Example #8
0
 public StorageInit(IDbConnectionConfig dbConnection, IFirstStart firstStart)
 {
     _dbConnection = dbConnection;
     _firstStart   = firstStart;
 }
Example #9
0
 public CarouselLogItem(IColorConfiguration colorConfig, IDbConnectionConfig dbConnectionConfig) : this(colorConfig)
 {
     this._QueryForPath = new QueryForPath(dbConnectionConfig);
 }
Example #10
0
 public DbConnectionParser(IDbConnectionConfig config)
 {
     _config = config;
 }
Example #11
0
 public CarStorage(ILogger <CarStorage> logger, IDbConnectionConfig dbConnection, IStorageInit storageInit) : base(storageInit)
 {
     _dbConnection = dbConnection;
     _logger       = logger;
     BeginInitDataBase().Wait();
 }
Example #12
0
 public SqlConnectionFactory(IDbConnectionConfig dbConnectionConfig)
 {
     this.dbConnectionConfig = dbConnectionConfig;
 }