• JulianRooze's avatar
    Fix handling of selecting nullable value tuples (#1400) · 2c81a408
    JulianRooze authored
    `SingleOrDefault<(int, int)?>(query)` always returned null because the IsValueTuple did not handle nullable types and thus the `GenerateValueTupleDeserializer` method was never called.
    
    I've added test for the case when the query does not return something (the tuple should be null) and when it does return something. Additionally added tests for the edge-case where you select 8 or 15 element tuples to make sure nothing broke there. 
    2c81a408
Name
Last commit
Last update
..
Helpers Loading commit data...
Providers Loading commit data...
SharedTypes Loading commit data...
App.config Loading commit data...
AsyncTests.cs Loading commit data...
ConstructorTests.cs Loading commit data...
Dapper.Tests.csproj Loading commit data...
DataReaderTests.cs Loading commit data...
DecimalTests.cs Loading commit data...
EnumTests.cs Loading commit data...
LiteralTests.cs Loading commit data...
MiscTests.cs Loading commit data...
MultiMapTests.cs Loading commit data...
NullTests.cs Loading commit data...
ParameterTests.cs Loading commit data...
ProcedureTests.cs Loading commit data...
ProviderTests.cs Loading commit data...
QueryMultipleTests.cs Loading commit data...
SqlBuilderTests.cs Loading commit data...
TestBase.cs Loading commit data...
TransactionTests.cs Loading commit data...
TupleTests.cs Loading commit data...
TypeHandlerTests.cs Loading commit data...
XmlTests.cs Loading commit data...