public ResultRecord Read(IDataResults reader) { var records = reader.GetNextEnumerable <ResultRecord>().ToDictionary(r => r.Id); reader.GetNextEnumerable <PartialRecordValue>().MapOnto(p => records[p.Id], (p, r) => r.Value = p.Value); return(records.Values.Single()); }
public TestObject Read(IDataResults result) { var obj1 = result.AsEnumerable <TestObject>().First(); var obj2 = result.GetNextEnumerable <TestObject>().First(); obj1.TestString = obj2.TestString; return(obj1); }