public void Test_SaveIndicatorsBatch() { IndicatorBLL iBLL = new IndicatorBLL(_unit); List <Indicator> lIndicator = new List <Indicator>(); Indicator ind = new Indicator { TradingDate = 1, ShareId = 1, Close = 0.1, //PreviousClose = 0.1, SMA5 = 5, SMA10 = 10, SMA30 = 20, SMA50 = 50, SMA200 = 200 }; lIndicator.Add(ind); for (int i = 0; i < 1000; i++) { ind = new Indicator { TradingDate = 1, ShareId = 2, Close = 0.1, SMA5 = i, SMA10 = null, SMA30 = 20, SMA50 = 50, SMA200 = 200, EMA10 = 10, EMA20 = 20, EMA50 = 50, ADX = 1, ADX_Minus = 1, ADX_Plus = 2, BB_High = 1, BB_Low = 2, BB_Middle = 1.5, Heikin_Close = 1, Heikin_High = 2, Heikin_Low = 1, Heikin_Open = 1, MACD = 1, MACD_Hist = 2, MACD_Signal = 3, RSI = 2, Stochastic_D = 1, Stochastic_K = 3, WR = 100 }; if (i % 3 == 0) { //ind.PreviousClose = i; } lIndicator.Add(ind); } iBLL.SaveIndicatorsBatchDB(lIndicator); }