public IEnumerable <Element> map(IDataReader reader) { var table = new DataTable(); table.Load(reader); foreach (DataRow row in table.Rows) { yield return(mapper.@from <DataRow, Element>(row)); } }