June 2020
Intermediate to advanced
432 pages
11h 57m
English
While schema-less databases make it extremely easy to write documents of different forms to the same collection, this can pose problems when reading documents back from that same collection and deserializing them. In reality, the problem of schema management is not removed, but deferred to a later point in time.
Continuing the example from the previous section, deserializing the first person that was saved on the new C# Person class definition will result in a null value for the city property. This can be unexpected, since the C# code guarantees that a person without a city can never be constructed. This is a clear example of the challenges that schema-less databases pose.
In this example, the issue can be ...
Read now
Unlock full access