We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3cf509 commit a012288Copy full SHA for a012288
source/fundamentals/serialization/poco.txt
@@ -337,9 +337,9 @@ MongoDB field. The following table describes the ID generators available in the
337
338
To serialize the ``Id`` property as an ``ObjectId``, apply the
339
``[BsonRepresentation(BsonType.ObjectId)]`` attribute to the property, as shown
340
- in the following code example. In this case, the driver uses the
341
- ``ObjectIdGenerator`` type to generate a unique ``ObjectId`` value and assigns
342
- it to the ``Id`` property.
+ in the following code example. In this case, if the property contains the value
+ ``null``, the driver uses the ``ObjectIdGenerator`` type to generate a unique
+ ``ObjectId`` value and assigns it to the ``Id`` property.
343
344
.. code-block:: csharp
345
:copyable: true
0 commit comments