I have this weird problem that nested dictionaries don't have their values set. But nested Lists do work.
If I listen to the DidChangeRecord event and build the dictionary myself, casting the changedFields to <string, object> dictionaries and then casting the object to the desired class, everything works fine.
But the values in the collection are not correct. The length of the dictionary is always 0.
The structure looks like this:
class MyDocType : MongoDocument {
public class List<MemberClass>
}
class MemberClass {
Dictionary<string, SubClass> // this is always empty
}
Is this a known problem/limitation or should this be supported and I am doing something wrong?
I have this weird problem that nested dictionaries don't have their values set. But nested Lists do work.
If I listen to the DidChangeRecord event and build the dictionary myself, casting the changedFields to
<string, object>dictionaries and then casting theobjectto the desired class, everything works fine.But the values in the collection are not correct. The length of the dictionary is always 0.
The structure looks like this:
Is this a known problem/limitation or should this be supported and I am doing something wrong?