Dapper
Dapper copied to clipboard
Dapper - a simple object mapper for .Net
Added support for loosely coupled custom query parameters.
With the `ICustomQueryParameter` we are able to create custom datatypes and control how the ADO.Net parameter is created and configured, this allows for a seamless coding experience. I would like...
I have a wrapper implementation of `IDbCommand` for logging purposes. When I use it, Dapper throws an error during mapping. I believe this piece of code is at fault: https://github.com/StackExchange/Dapper/blob/61e965eed900355e0dbd27771d6469248d798293/Dapper/SqlMapper.Async.cs#L480...
Sadly the `Database` class from `Dapper.Rainbow` uses a `DbConnection` instead of a more accessable `IDbConnection`. [here](https://github.com/DapperLib/Dapper/blob/ca00feeb5fafe5262166689c0bec2b80b53add4e/Dapper.Rainbow/Database.cs#L191) This prevents from using alternative implementations.
Fix arithmetic overflow for unsigned integer mapping (byte, ushort, uint, ulong) Add tests to reproduce issue #1164
When querying to a strongly type object which uses an unsigned short (ushort) you get an arithmetic overflow if the SQL value is greater than short.MaxValue (32767). The SQL data...
When a custom parameter explicitly implements the `ICustomQueryParameter` interface Dapper throws and `ArgumentNullException`. See the following example (modified from an existing Unit Test) ```C# private class IntExplicitCustomParam : SqlMapper.ICustomQueryParameter {...
We are experiencing sporadic errors with the following code. We have not been able to reproduce it, but it occurs roughly once a day. **Error Message** System.NullReferenceException: Object reference not...
The following code ```csharp var result = connection.QuerySingleOrDefault("SELECT '-infinity'::timestamptz AS Value"); public class Dto { public DateTimeOffset Value { get; set; } } ``` throws a `DataException: Error parsing column...