Exemplo n.º 1
0
        public object ToRows(Type rowType, ResultSet resultSet)
        {
            var binder  = new RowConverter();
            var columns = resultSet.Columns;

            return(resultSet.Rows
                   .Select(row => binder.ConvertRowToObject(rowType, columns, row))
                   .ToListOfDynamicType(rowType));
        }
Exemplo n.º 2
0
 public object ToSingleRow(Type rowType, ResultSet resultSet)
 {
     return(converter.ConvertRowToObject(rowType, resultSet.Columns, resultSet.Rows.Single()));
 }