Esempio n. 1
0
 public override DataSet GetDataSet()
 {
     try
     {
         MyDataSet = DbHelper.GetDataSet(String.Format("SELECT * FROM {0} WHERE {1}='{2}' AND {3}='{4}'", Table, Items[0], Value[0], Items[1], Value[1]));
         return(MyDataSet);
     }
     catch
     {
         throw new Exception("Wrong with Checked");
     }
 }
Esempio n. 2
0
 public override DataSet GetDataSet()
 {
     try
     {
         MyDataSet = DbHelper.GetDataSet("SELECT * FROM " + Table);
         return(MyDataSet);
     }
     catch
     {
         throw new Exception("wrong with selected");
     }
 }