I'm trying to figure out the best way to approach the following scenario:
I have an API app that has gone through serious modifications in terms of domain objects
The old domain objects are gone though I maybe able to find them by going through GitHub repos
The data in document database are still in the shape of old domain objects.
The job is to convert them so that they can be accessed/updated using new domain objects
I have thought of two options:
If I can reconstruct the old domain objects, I think that's still the best approach to reading data from the database and easily accessing and manipulating data during the process of converting it to new objects/documents.
Probably the quickest way to read them is to use
dynamic's but I think reading values and figuring out properties maybe a bit more challenging.