Example #1
0
 public static void LoadDataSet(DbCommand command, string tableName, ref DataSet ds)
 {
     try
     {
         Microsoft.Practices.EnterpriseLibrary.Data.Database db = DBSelector.Instance.GetDataBase;
         db.LoadDataSet(command, ds, tableName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 /// <summary>
 /// Execute a non query returning resultset as a datatable
 /// </summary>
 /// <param name="command"></param>
 /// <returns>DataTable</returns>
 public static DataSet LoadDataSet(DbCommand command, string tableName)
 {
     DataSet ds = new DataSet();
     try
     {
         Microsoft.Practices.EnterpriseLibrary.Data.Database db = DBSelector.Instance.GetDataBase;
         db.LoadDataSet(command, ds, tableName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return ds;
 }