Skip to content

Conversation

@MontakOleg
Copy link

ExecuteScalar not support Nullable<> types. For example,

db.ExecuteScalar<int?>() fails with error: "System.NotSupportedException : Don't know how to read System.Nullable`1[System.Int32]"

This PR fixes the problem and adds the test.

@oysteinkrog
Copy link
Owner

Thank you:)

oysteinkrog added a commit that referenced this pull request Dec 2, 2014
[Fix] Nullable types in ExecuteScalar
@oysteinkrog oysteinkrog merged commit 1f2a3d9 into oysteinkrog:master Dec 2, 2014
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.

2 participants