Your best bet is to pre- or postprocess the mappings, or use coded mappings (or FNH). Or let the serializer include the type data in the JSON blob. That's what the SerializableType does, in the binary data.
Then again, that's a lot of work just to avoid the syntax. :) /G 2016-06-22 19:35 GMT+02:00 Ramon Smits <[email protected]>: > > Hi, > > Is it possible to override the used serializer when specifying > type="serializable" ? Instead of the default binary system serializer it > would be nice if you would swap this with a JSON serializer. > > I currently have a solution with a user type but I don't like the XML > syntax because it needs to include the type: > > <property name="From" type="Blobbed`1[[OrderSagaDataXml+Location, > Sample.XmlMapping]], Sample.XmlMapping" column="FromLocationJson"/> > > > If configuring the serializer to use is not possible then is it possible > to get access to the property / field type in the custom user type? Then it > would be possible to do something like: > > <property name="From" type="Blobbed, Sample.XmlMapping" column=" > FromLocationJson"/> > > > I cloned the SerializableType and debugged it but I can't resolve the > property type anywhere. > > > Regards, > Ramon > > > > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
