-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
I am getting this exception when I try to use Dapper on mono
System.TypeInitializationException: The type initializer for 'Dapper.SqlMapper' threw an exception.
---> System.TypeLoadException: Failed for unknown reasons.
Looking at the type initializer code of SqlMapper and the mono documentation, it seems that
AddTypeHandlerImpl(typeof(IEnumerable<Microsoft.SqlServer.Server.SqlDataRecord>), new SqlDataRecordHandler(), false);
is the culprit - Microsoft.SqlServer.Server.SqlDataRecord is listed nowhere in the mono docs, I guess it isn't implemented.
Metadata
Metadata
Assignees
Labels
No labels