예제 #1
0
 public BondInfoRepository(Infrastructure.ConnectionType type)
 {
     windReader = new WindReader();
     sqlWriter  = new SqlServerWriter(type);
     sqlReader  = new SqlServerReader(type);
     dateRepo   = new TransactionDateTimeRepository(type);
 }
 public StockInfoDailyRepository(QuantitativeAnalysis.DataAccess.Infrastructure.ConnectionType type, IDataSource dataSource)
 {
     sqlReader       = new SqlServerReader(type);
     sqlWriter       = new SqlServerWriter(type);
     dateRepo        = new TransactionDateTimeRepository(type);
     this.dataSource = dataSource;
 }
예제 #3
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(ConnectionType type, IDataSource ds)
 {
     dateTimeRepo = new TransactionDateTimeRepository(type);
     sqlWriter    = new SqlServerWriter(type);
     sqlReader    = new SqlServerReader(type);
     redisReader  = new RedisReader();
     redisWriter  = new RedisWriter();
     dataSource   = ds;
 }
 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();
     }
 }
 public StockInfoRepository(ConnectionType type)
 {
     windReader = new WindReader();
     sqlWriter  = new SqlServerWriter(type);
     dateRepo   = new TransactionDateTimeRepository(type);
 }