Пример #1
0
        public List <ISequenceClass> GetSequences()
        {
            if (_sequences.Count == 0 && !_isLoadSeqs)
            {
                DataTable dt = _oracleHelper.ExecuteDataTable("select * from user_sequences order by sequence_name");
                foreach (DataRow item in dt.Rows)
                {
                    OracleSequenceClass osc = new OracleSequenceClass(item);
                    _sequences.Add(osc);
                }
                _isLoadSeqs = true;
            }
            List <ISequenceClass> t = new List <ISequenceClass>();

            t.AddRange(_sequences);
            return(t);
        }
Пример #2
0
 public List<ISequenceClass> GetSequences()
 {
     if (_sequences.Count == 0 && !_isLoadSeqs)
     {
         DataTable dt = _oracleHelper.ExecuteDataTable("select * from user_sequences order by sequence_name");
         foreach (DataRow item in dt.Rows)
         {
             OracleSequenceClass osc = new OracleSequenceClass(item);
             _sequences.Add(osc);
         }
         _isLoadSeqs = true;
     }
     List<ISequenceClass> t = new List<ISequenceClass>();
     t.AddRange(_sequences);
     return t;
 }