Closed ddevader closed 2 months ago
Raven DB doesn't currently easily support complex types as metadata.
Using the Noda types in metadata can currently be done using DynamicJsonValue and duplicating some of your internal logic.
A basic solution might be something like
.ToNodaType<T>
.AddNodaType<T>
Or refactor internal conversion logic for public consumption in order to allow a user of your library to do something similar.
If there is a better/simpler way to do this, let me know.
Thanks in advance for your consideration.
Could you create a PR with the functionality you want. That might be better to understand your requirements and if they should be in this package.
// Ryan
Raven DB doesn't currently easily support complex types as metadata.
Using the Noda types in metadata can currently be done using DynamicJsonValue and duplicating some of your internal logic.
A basic solution might be something like
.ToNodaType<T>
.AddNodaType<T>
Or refactor internal conversion logic for public consumption in order to allow a user of your library to do something similar.
If there is a better/simpler way to do this, let me know.
Thanks in advance for your consideration.