/// <summary> /// Clone /// </summary> /// <returns></returns> public object Clone() { var rtn = new DataSetStd(); foreach (var item in this._tables) { rtn._tables.Add((DataTableStd)item.Clone()); } return(rtn); }
/// <summary> /// 从游标中填充数据。用于协助没有提供DataAdapter的驱动使用 /// </summary> /// <param name="ddr"></param> /// <returns></returns> public static DataSetStd FillData(DbDataReader ddr) { var rtn = new DataSetStd(); if (ddr != null) { var index = 0; do { var dt = DataTableStd.ParseStd(ddr); rtn._tables.Add(dt); } while (ddr.NextResult()); } return(rtn); }