Пример #1
0
            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());
            }
Пример #2
0
            public TestObject Read(IDataResults result)
            {
                var obj1 = result.AsEnumerable <TestObject>().First();
                var obj2 = result.GetNextEnumerable <TestObject>().First();

                obj1.TestString = obj2.TestString;
                return(obj1);
            }