コード例 #1
0
ファイル: Loader.cs プロジェクト: sbagnall/Forex.ETL
        public void Load(ITransformationResult transformation)
        {
            var result = transformation as OneMinuteTransformationResult;

            _repo.Insert(Periods.OneMinute, result.Pair, result.OneMinuteData);

            foreach (var period in Enum.GetValues(typeof(Periods)).Cast <Periods>().Where(x => ((x != Periods.NotSet) && (x != Periods.OneMinute))))
            {
                _repo.Insert(period, result.Pair, Binner.Bin(result.OneMinuteData, period, TimeZoneInfo.Utc));
            }

            _repo.SaveChanges();
        }
コード例 #2
0
        public void Load(ITransformationResult transformation)
        {
            var result = transformation as TransformationResult;

            _repo.Insert(result.ToFinancialData().ToList());
        }