public StockOptionDailyRepository(QuantitativeAnalysis.DataAccess.Infrastructure.ConnectionType type, IDataSource dataSource)
 {
     sqlReader       = new SqlServerReader(type);
     sqlWriter       = new SqlServerWriter(type);
     dateRepo        = new TransactionDateTimeRepository(type);
     this.dataSource = dataSource;
 }
Esempio n. 2
0
 public StockTickRepository(QuantitativeAnalysis.DataAccess.Infrastructure.ConnectionType type, IDataSource ds)
 {
     transDateRepo = new TransactionDateTimeRepository(type);
     sqlReader     = new SqlServerReader(type);
     sqlWriter     = new SqlServerWriter(type);
     dataSource    = ds;
     redisWriter   = new RedisWriter();
     redisReader   = new RedisReader();
 }
 public StockMinuteRepository(QuantitativeAnalysis.DataAccess.Infrastructure.ConnectionType type, IDataSource ds, bool redis = false)
 {
     dateTimeRepo = new TransactionDateTimeRepository(type);
     sqlWriter    = new SqlServerWriter(type);
     sqlReader    = new SqlServerReader(type);
     sqlReader170 = new SqlServerReader(Infrastructure.ConnectionType.Server170);
     dataSource   = ds;
     this.redis   = redis;
     if (redis == true)
     {
         redisReader = new RedisReader();
         redisWriter = new RedisWriter();
     }
 }