Ejemplo n.º 1
0
        public void FillListWithConstHashCode100000()
        {
            long m;
            var  FillListInstance = new FillList();

            m = FillListInstance.FillListInternalGetHashCode(100000, false);
            Assert.IsNotNull(m);
        }
Ejemplo n.º 2
0
        public static void ExecuteSelectCommand(string sql, SQLiteParameter[] parameters, FillList fillList)
        {
            SQLiteDataReader rdrSelect    = null;
            SQLiteConnection dbConnection = null;

            try
            {
                dbConnection = OpenConection();
                SQLiteCommand command = new SQLiteCommand(sql, dbConnection);
                if (parameters != null)
                {
                    command.Parameters.AddRange(parameters);
                }
                rdrSelect = command.ExecuteReader();
                fillList(rdrSelect);
                rdrSelect.Close();
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Exception: " + ex.Message);
            }
            finally
            {
                CloseDataReader(rdrSelect);
                CloseConection(dbConnection);
            }
        }