-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Description
I know this is a very specific case, but... Javascript doesn't support longs. They are trimmed down to the nearest 53bit integer. I have a DB where Ids are longs so I implemented a custom json converter for my webapi that simply writes longs as strings and parse them back from strings (instead of using real js numbers).
I can't do the same with STI, as the serializer it generates simply does a writer.WriteNumberValue(value.Value);. That's fine inside the .net realm, but not in javascript.
I would like an option to be able to specify that longs should be [de]serialized as strings instead of numbers.
Would that be possible? Not sure about any other options that could solve the problem in a generic way.
Metadata
Metadata
Assignees
Labels
No labels