private DataAccess.Record _GeneralRecord(DataRow dataRow, DBType type) { DataAccess.Record record = new DataAccess.Record("hqftable2"); foreach (DataColumn dc in dataRow.Table.Columns) { record.AddField(dc.ColumnName , dataRow[dc] , _SetFieldType(dc) , IsKey(dc.ColumnName)); } record.dbType = type; return(record); }
private DataAccess.RecordCollection _GeneralRecords(DataTable sourDt, DBType type) { DataAccess.RecordCollection rc = new DataAccess.RecordCollection(); int index = 0; foreach (DataRow dr in sourDt.Rows) { DataAccess.Record rec = _GeneralRecord(dr, type); rec.Index = index; rc.Add(rec); index++; } return(rc); }