orientechnologies / OrientDB.Net

OrientDB .Net Core core modules solution.
4 stars 7 forks source link

If an OrientDBEntity implements IDictionary<string, object> then also serialize its key-value pairs #16

Open weizensnake opened 7 years ago

weizensnake commented 7 years ago

Currently the only objects that can naturally be serialized/deserialized are OrientDBEntities. For those serialization will try to serialize each property. We can have properties of type Dictionary that will turn into subobjects but we cannot currently use OrientDB as a document database which reads and writes dictionaries of keys and values. As a remedy I suggest we allow an OrientDBEntity to be such a document by implementing IDictionary<string, object> if desired. The existing entity-style behavior will be unaffected.

weizensnake commented 6 years ago

17