protected IDataReader getList(string _sql) { try { return(Dbmanager.ExecuteReader(CommandType.Text, _sql)); } catch (Exception ex) { throw new Exception(ex.Message); } }
protected IDataReader getList(string _sql, string _strChuoiDieuKien) { try { Dbmanager.CreateParameters(1); Dbmanager.AddParameters(0, "@dk", _strChuoiDieuKien); return(Dbmanager.ExecuteReader(CommandType.Text, _sql)); } catch (Exception ex) { throw new Exception(ex.Message); } }