How to change a property's data type (a data type alias) #80
-
|
So, I have a property of type 'object' which on insert or update, I save as a string (for some good reason). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You should avoid saving unknown types like I'd recommend either saving the concrete Complex Type which will be de/serialized by the RDBMS registered Complex Type Serializer or if you want to serialize unknown payloads serialize it as a |
Beta Was this translation helpful? Give feedback.
You should avoid saving unknown types like
objectas serialization libraries won't know what Type to deserialize back into without embedding non-standard type info in the serialization wire format which isn't supported by most serializers.I'd recommend either saving the concrete Complex Type which will be de/serialized by the RDBMS registered Complex Type Serializer or if you want to serialize unknown payloads serialize it as a
stringand have your App handle what unknown type to deserialize it back into.