SamSaffron/dapper-dot-net — pull request #51 by azhmur (2012-09-18 11:59:51+00:00)
Title: Fixed issue with incorrect generated ParamReader when it has indexing properties declared.

System.InvalidProgramException was unhandled by user code
HResult=-2146233030
Message=Common Language Runtime detected an invalid program.
Source=Smackdown
StackTrace:
at ParamInfo0087c0ea-e179-4127-aa16-e4c0454cb2c0(IDbCommand , Object )
at Dapper.SqlMapper.SetupCommand(IDbConnection cnn, IDbTransaction transaction, String sql, Action`2 paramReader, Object obj, Nullable`1 commandTimeout, Nullable`1 commandType) in c:\GitHub\dapper-dot-net\Dapper\SqlMapper.cs:line 1611
at Dapper.SqlMapper.d__d`1.MoveNext() in c:\GitHub\dapper-dot-net\Dapper\SqlMapper.cs:line 808
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in c:\GitHub\dapper-dot-net\Dapper\SqlMapper.cs:line 767
at SqlMapper.Tests.TestParameterWithIndexer() in c:\GitHub\dapper-dot-net\Tests\Tests.cs:line 1937
InnerException: