Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking if value is equal to DBNull in ParameterTarget to see if it has a DefaultValue is wrong on .NET Core #235

Closed
einari opened this issue Apr 12, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@einari
Copy link

einari commented Apr 12, 2017

The HasDefaultValue implementation is not working correctly on .NET Core.
The DBNull.Value check will in fact return true when it in fact does not have a default value.

By flipping it from != to == - I got the right result, but not sure of the implications of that.
Equally, the ParameterInfo coming in does in fact have a property called HasDefaultValue - wouldn't it be better to use this instead? Or is there something that escapes me?

@scott-xu
Copy link
Member

Fixed

@scott-xu scott-xu modified the milestones: 4.0, 3.3.0 Sep 23, 2017
glenkeane-94 pushed a commit to glenkeane-94/Nin-ject that referenced this issue Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants