Skip to content

Commit 043d985

Browse files
committed
FP tech review
1 parent d837fda commit 043d985

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source/fundamentals/serialization/poco.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,9 @@ the following settings:
621621
- ``Representation``: Set to a ``BsonType`` instance that specifies how
622622
the ``DateOnly`` value is stored in MongoDB.
623623

624-
- ``DocumentFormat``: Set to one of the following
625-
``DateOnlyDocumentFormat`` enum values:
624+
- ``DocumentFormat``: Set only if you set the ``Representation``
625+
property to ``BsonType.Document``. You can set ``DocumentFormat`` to
626+
one of the following ``DateOnlyDocumentFormat`` enum values:
626627

627628
- ``DateTimeTicks`` (default): Document contains ``DateTime``
628629
(``BsonType.DateTime``) and ``Ticks`` (``BsonType.Int64``) fields

source/whats-new.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ The 3.2 driver release includes the following new features:
124124

125125
- Adds the ``DocumentFormat`` property to the ``DateOnlySerializer``.
126126
This property allows you to customize the way that the driver stores
127-
``DateOnly`` values. This release also adds the
127+
``DateOnly`` values in nested documents. This release also adds the
128128
``[BsonDateOnlyOptions()]`` attribute to customize serialization
129129
behavior for ``DateOnly`` values at the property level. To learn more,
130130
see the :ref:`csharp-poco-dateonly-attr` section of the POCOs guide.

0 commit comments

Comments
 (0)