Пример #1
0
        private void WriteResultsToDatabase(string seq)
        {
            var r = new tblResults_5Min
            {
                Profit   = Profit,
                Sequence = seq,
                Trades   = Trades,
            };
            var dc = new AlgoSecondLayer.SPPOPRESULTDataContext();

            dc.tblResults_5Mins.InsertOnSubmit(r);
            try
            {
                dc.SubmitChanges();
            }
            catch (Exception ex)
            {
                Console.WriteLine(seq + " already exists");
            }
        }
 partial void DeletetblResults_5Min(tblResults_5Min instance);
 partial void UpdatetblResults_5Min(tblResults_5Min instance);
 partial void InserttblResults_5Min(tblResults_5Min instance);
        private void WriteResultsToDatabase(string seq)
        {
            var r = new tblResults_5Min
            {
                Profit = Profit,
                Sequence = seq,
                Trades = Trades,

            };
            var dc = new AlgoSecondLayer.SPPOPRESULTDataContext();
            dc.tblResults_5Mins.InsertOnSubmit(r);
            try
            {
                dc.SubmitChanges();
            }
            catch (Exception ex)
            {
                Console.WriteLine(seq + " already exists");
            }
        }
Пример #6
0
 partial void DeletetblResults_5Min(tblResults_5Min instance);
Пример #7
0
 partial void UpdatetblResults_5Min(tblResults_5Min instance);
Пример #8
0
 partial void InserttblResults_5Min(tblResults_5Min instance);