• 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
Dapper Loading commit data...
Dapper.Contrib Loading commit data...
Dapper.EntityFramework Loading commit data...
Dapper.EntityFramework.StrongName Loading commit data...
Dapper.ProviderTools Loading commit data...
Dapper.Rainbow Loading commit data...
Dapper.SqlBuilder Loading commit data...
Dapper.StrongName Loading commit data...
Dapper.Tests Loading commit data...
Dapper.Tests.Contrib Loading commit data...
Dapper.Tests.Performance Loading commit data...
docs Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
Dapper.sln Loading commit data...
Dapper.sln.DotSettings Loading commit data...
Dapper.snk Loading commit data...
Directory.Build.props Loading commit data...
Directory.Build.targets Loading commit data...
License.txt Loading commit data...
Readme.md Loading commit data...
appveyor.yml Loading commit data...
build.cmd Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
game Loading commit data...
global.json Loading commit data...
nuget.config Loading commit data...
version.json Loading commit data...