Example #1
0
 protected IDataReader getList(string _sql)
 {
     try
     {
         return(Dbmanager.ExecuteReader(CommandType.Text, _sql));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Example #2
0
 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);
     }
 }