public void GetTotalRowsByCounting(MySqlCommand cmd) { string sql = string.Format("SELECT COUNT(*) FROM `{0}`;", _name); _totalRows = QueryExpress.ExecuteScalarLong(cmd, sql); }