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

Conversion for empty items..? #1

Open
yltsa opened this issue Apr 27, 2022 · 0 comments
Open

Conversion for empty items..? #1

yltsa opened this issue Apr 27, 2022 · 0 comments

Comments

@yltsa
Copy link

yltsa commented Apr 27, 2022

Hi,

I have database where the values are saved as varchar(xx) and like to convert those to values based on UnitsNet.

The problem is, that sometimes the fields are empty in the database. Is it possible to make converters which returns nullable values like "Speed?" ? Later it would be easy to make a query and check the HasValue property and skip the empty rows.

Now my software crashes because the conversions fail.

BR, Ilkka

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

No branches or pull requests

1 participant