Skip to content

Commit 076e390

Browse files
authored
DOCSP-49341 EF v8.3 Release (#53)
1 parent 7e0fca3 commit 076e390

File tree

4 files changed

+65
-3
lines changed

4 files changed

+65
-3
lines changed

config/redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/entity-framework
22
define: base https://www.mongodb.com/${prefix}
3-
define: versions v7.0 v8.0 v8.1 v8.2 master
3+
define: versions v7.0 v8.0 v8.1 v8.2 v8.3 master
44

55
raw: ${prefix}/ -> ${base}/current/
66
raw: ${prefix}/stable -> ${base}/current/

snooty.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ mdb-server = "MongoDB Server"
2828
mongo-community = "MongoDB Community Edition"
2929
mongo-enterprise = "MongoDB Enterprise Edition"
3030
docs-branch = "master" # always set this to the docs branch (i.e. master, 1.7, 1.8, etc.)
31-
version-number = "8.2" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.)
32-
full-version = "{+version-number+}.3"
31+
version-number = "8.3" # always set this to the driver branch (i.e. 1.7.0, 1.8.0, etc.)
32+
full-version = "{+version-number+}.0"
3333
version = "v{+version-number+}"
3434
ef-core-version = "8.0"
3535
stable-api = "Stable API"

source/upgrade.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,50 @@ changes between the current and upgrade versions. For example, if you
4848
are upgrading the provider from v8.0 to v8.5, address all breaking changes from
4949
the version after v8.0, including any listed under v8.5.
5050

51+
.. _entity-framework-breaking-changes-v8.3:
52+
53+
Version 8.30.0 Breaking Changes
54+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55+
56+
Version 8.3.0 of the {+provider-short+} introduces a breaking change that
57+
corrects the handling of nullable properties configured with an alternative BSON
58+
representation. In previous versions, configurations set by the
59+
``[BsonRepresentation]`` attribute or the ``HasBsonRepresentation()`` fluent API
60+
were not applied.
61+
62+
You can take action to address this discrepency in one of two ways:
63+
64+
- If using the alternative BSON representation is not critical, remove the
65+
configuration from your application before it starts.
66+
67+
- Alternatively, you can update the affected elments to the new representation.
68+
As part of your upgrade process, use the ``updateMany`` method for each
69+
affected MongoDB collection to rewrite any affected nullable properties or
70+
elements into the desired BSON representation using the ``$convert``
71+
operation.
72+
73+
For example, you can convert a ``dateOfBirth`` element in a collection named
74+
``people`` from a BSON ``date`` into BSON ``int`` as shown in the following
75+
code:
76+
77+
.. code-block:: csharp
78+
79+
db.people.updateMany(
80+
{ dateOfBirth: {$type: "date" } },
81+
[
82+
{ $set: {
83+
dateOfBirth:
84+
{ $convert:
85+
{ input: "$dateOfBirth",
86+
to: "int",
87+
onNull: null
88+
}
89+
}
90+
}
91+
}
92+
]
93+
)
94+
5195
.. _entity-framework-breaking-changes-v8.2:
5296

5397
Version 8.2.0 Breaking Changes

source/whats-new.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ What's New
1919

2020
Learn what's new in:
2121

22+
* :ref:`Version 8.3 <entity-framework-version-8.3>`
2223
* :ref:`Version 8.2.3 <entity-framework-version-8.2.3>`
2324
* :ref:`Version 8.2.2 <entity-framework-version-8.2.2>`
2425
* :ref:`Version 8.2.1 <entity-framework-version-8.2.1>`
@@ -32,6 +33,23 @@ Learn what's new in:
3233
changes to major version releases. Instead, breaking and significant changes
3334
are made in minor version releases.
3435

36+
.. _entity-framework-version-8.3:
37+
38+
What's New in 8.3
39+
-----------------
40+
41+
The 8.3 provider release includes the following new features:
42+
43+
- Adds support for setting BSON representation on ``PropertiesConfigurationBuilder``.
44+
45+
- Adds configuration-level support for ``HasDateTimeKind()``.
46+
47+
- Changes behavior to apply ``HasBsonRepresentation`` to nullable properties. To
48+
learn more, see :ref:`entity-framework-breaking-changes-v8.3` in the
49+
:ref:`entity-framework-upgrade-provider` guide.
50+
51+
- Changes behavior to allow testing for nullabilty for navigation collections.
52+
3553
.. _entity-framework-version-8.2.3:
3654

3755
What's New in 8.2.3

0 commit comments

Comments
 (0)