yuan8825399 / dapper-dot-net

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

System.MissingMethodException on Mono 3.0.6 .NET framework 4.0 #150

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Execute insert statement with anonymous type instance for parameters and 
command timeout

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

System.MissingMethodException : Method not found: 
'System.Reflection.MethodInfo.CreateDelegate'.
at Dapper.SqlMapper.GetCacheInfo (Dapper.Identity identity) [0x00000] in 
<filename unknown>:0 
at Dapper.SqlMapper.Execute (IDbConnection cnn, System.String sql, 
System.Object param, IDbTransaction transaction, Nullable`1 commandTimeout, 
Nullable`1 commandType) [0x00000] in <filename unknown>:0 

What version of the product are you using? On what operating system?

1.13 on Linux and Mono 3.0.6 .NET framework 4.0

Please provide any additional information below.

Works on 1.12.1

Original issue reported on code.google.com by william....@7digital.com on 7 Aug 2013 at 1:27

GoogleCodeExporter commented 9 years ago
This error is gone when using the following Dapper (I was also using PostgreSQL 
when I encountered this error):

 * Dapper: Dapper dot net (1.38)
 * Npgsql: Npgsql (2.2.3)
 * 
 * Install-Package Dapper
 * Install-Package Npgsql

Tested with a .NET 4.0 assembly running under Mono 3.0.3

What a relief! :)

Original comment by xera...@gmail.com on 27 Nov 2014 at 10:33