You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add support for asRecord deserializing fields into single-case discriminated unions. For example, I have a type Int6 = Int6 of int, which I just use for ints 0 <= i <= 5. When I try to deserialize my int32 database field through asRecord, I get:
System.ArgumentException: Object type System.Int32 cannot be converted to target type: sleep_log.DomainTypes+Int6
I make extensive use of single-case discriminated unions, so having asRecord see that e.g., my int32 database field corresponds to a T<int> record field would be super cool.
The text was updated successfully, but these errors were encountered:
Please add support for
asRecord
deserializing fields into single-case discriminated unions. For example, I have atype Int6 = Int6 of int
, which I just use forint
s 0 <= i <= 5. When I try to deserialize myint32
database field throughasRecord
, I get:System.ArgumentException: Object type System.Int32 cannot be converted to target type: sleep_log.DomainTypes+Int6
I make extensive use of single-case discriminated unions, so having
asRecord
see that e.g., myint32
database field corresponds to aT<int>
record field would be super cool.The text was updated successfully, but these errors were encountered: