Example #1
0
 public DataSet ExecuteDataset(string statementName, params DatabaseParameter[] dbParams)
 {
     try {
         string sql = GenerateSql(statementName);
         DatabaseAccess access = new DatabaseAccess(_conn);
         return access.ExecuteDataset(sql, dbParams);
     }
     catch (Exception ex) {
         throw new Exception(string.Format("Sql执行出错,节点名\"{0}\" ({1})", statementName, _sqlMapPath), ex);
     }
 }