Replies: 1 comment
-
This area could definitely be improved. For example, one approach would be to serialize 100 cm as Anyway, there is currently no built-in public way to parse these values. UnitsNet/UnitsNet/UnitConverter.cs Lines 337 to 357 in ebd3275 We could probably provide something similar, like |
Beta Was this translation helpful? Give feedback.
-
I am trying to figure out how to store and retreive an IQuantity to a database. So basically I want to store a Quantity field and Unit as a string. When I inspect the JSON converter it seems that the string field is exploded, converted to a type, etc. etc.
I was wondering if this is really the way to go. For such a great library surely I must have missed something. I was expecting I could get the full string from QuantityInfo object, and then use that to parse it back to an IQuantity.
Beta Was this translation helpful? Give feedback.
All reactions