Skip to content

Map nullable struct query results - #2258

Open
alaricd wants to merge 1 commit into
DapperLib:mainfrom
pengdows:fix/issue-1900
Open

alaricd wants to merge 1 commit into
DapperLib:mainfrom
pengdows:fix/issue-1900

Conversation

@alaricd

@alaricd alaricd commented Oct 24, 2026

Copy link
Copy Markdown

Fixes #1900

Nullable struct result types were passed to the member-mapping deserializer as if Nullable itself were the mapped type, producing a default value for populated rows. Deserialize the underlying struct type and add a fakeDb regression test.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Querying with a nullable struct param always returns null

1 participant