Tomboi88 / dapper-dot-net

Automatically exported from code.google.com/p/dapper-dot-net
Other
0 stars 0 forks source link

Call IEnumerable<T>.Count() of Read() method result before IEnumerable.ToList<T>() cause Exception #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Execute QueryMultiple method
2.Execute Read method
3.call IEnumerable<T>.Count()
4.call IEnumerable<T>.ToList() 

What is the expected output? What do you see instead?

I expected a collection of T, but, cause a ArgumentException "When using 
multi-mapping Apis ensure youset the spliton param if you have keys other than 
id". If I skip step 3, its work fine.

What version of the product are you using? On what operating system?
Last version, visual studio 2010, framework 4, sqlserver 2008 r2, windows 
server 2008.

Please provide any additional information below.

In general, if i call any method before ToList() or ToArray() or etc..., I 
obtain the same exception when I call ToList() method.

Original issue reported on code.google.com by mana...@gmail.com on 24 Apr 2012 at 8:28