File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
fundamentals/serialization Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments