Ejemplo n.º 1
0
        private HeckTextRecord HeckTextRecordColumnMapper(DataTable dataTable)
        {
            HeckTextRecord item = new HeckTextRecord();

            item.Value = Convert.ToString(dataTable.Rows[0][0]);
            return(item);
        }
Ejemplo n.º 2
0
        private List <HeckTextRecord> HeckTextRecordListColumnMapper(DataTable dataTable)
        {
            List <HeckTextRecord> list = new List <HeckTextRecord>();

            foreach (DataRow row in dataTable.Rows)
            {
                HeckTextRecord item = new HeckTextRecord();
                item.Value = Convert.ToString(row[0]);
                list.Add(item);
            }
            return(list);
        }