Yes serialization and saving to mongo is working fine, it's only when
I attempt read from this specific collection that has an object as a
property. What you mention there about MongoVue makes sense, it
doesn't know my entity schema, it must purely be using reflection, and
on a per document basis (not for the entire collection) since each
document in the collection may / will have a unique schema.
With that, I'm wondering if it makes sense to just read this
collection as raw BSON documents, instead of as my typed entity, or
possibly try to use collection<object>("collectionname") when
retrieving this particular collection. Before you sent this, I was
thinking of possibly just storing this property as xml, so it would
just be a string. This wouldn't be ideal, but a work around.
I see what you're saying about assigning the type when serialization
now, that would be a good option in this instance. To do that, the
serializer would need to be aware of reference types outside of it's
own collection type though... would that be possible? To have it
reference a data entity assembly to populate a list of known reference
types? That way during serialization so you could set "car" as a
type, even if the collection itself was of type "house".