Skip to content

Commit 4f8389c

Browse files
authored
DOCSP-46021 - v8.2.1 Release (#44)
1 parent 476d178 commit 4f8389c

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

snooty.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ 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.)
3131
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+}.0"
32+
full-version = "{+version-number+}.1"
3333
version = "v{+version-number+}"
34+
ef-core-version = "8.0"
3435
stable-api = "Stable API"
3536
bool-data-type = "``boolean``"
3637
string-data-type = "``string``"
3738
int-data-type = "``integer``"
3839
not-available = "N/A"
3940
package = "MongoDB.EntityFrameworkCore"
4041
api-root = "https://mongodb.github.io/mongo-efcore-provider/{+full-version+}/api"
42+
driver-api-root = "https://mongodb.github.io/mongo-csharp-driver/3.0.0/api"
4143

4244
[[banners]]
4345
targets = ["index.txt"]

source/includes/compatibility-table.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
- MongoDB Version
99

1010
* - **8.1.0 - {+full-version+}**
11-
- **8.0**
11+
- **{+ef-core-version+}**
1212
- **8.0 or later**
1313
- **5.0 or later**

source/whats-new.txt

Lines changed: 40 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.2 <entity-framework-version-8.2.1>`
2223
* :ref:`Version 8.2 <entity-framework-version-8.2>`
2324
* :ref:`Version 8.1 <entity-framework-version-8.1>`
2425

@@ -29,6 +30,45 @@ Learn what's new in:
2930
changes to major version releases. Instead, breaking and significant changes
3031
are made in minor version releases.
3132

33+
.. _entity-framework-version-8.2.1:
34+
35+
What's New in 8.2.1
36+
-------------------
37+
38+
The 8.2.1 provider release includes the following new features:
39+
40+
- Adds support for {+framework+}
41+
`shadow properties, <https://learn.microsoft.com/en-us/ef/core/modeling/shadow-properties>`__
42+
properties that aren't defined in your .NET entity class but are
43+
included in the {+framework-core+} model and mapped to the database.
44+
45+
- Adds support for using the
46+
`HasIndex() <https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.metadata.builders.entitytypebuilder-1.hasindex?view=efcore-{+ef-core-version+}>`__
47+
{+framework+} Fluent API method to create indexes for a property when you create
48+
a database.
49+
50+
The following example shows how to specify indexes for the ``Customer.Name``,
51+
``Order.OrderRef``, ``Address.ZipCode``, and ``Documents.DocRef`` properties:
52+
53+
.. code-block:: csharp
54+
55+
var context = MyContext.CreateCollectionOptions(database.MongoDatabase, mb =>
56+
{
57+
mb.Entity<Customer>().HasIndex(c => c.Name);
58+
mb.Entity<Order>().HasIndex(o => o.OrderRef).IsUnique();
59+
mb.Entity<Address>().HasIndex(o => o.ZipCode, "custom_index_name");
60+
mb.Entity<Documents>()
61+
.HasIndex(d => d.DocRef)
62+
.HasCreateIndexOptions(new CreateIndexOptions { Sparse = true });
63+
});
64+
65+
var result = context.Database.EnsureCreated();
66+
67+
- Adds support for the `MQL.Exists() <{+driver-api-root+}/MongoDB.Driver/MongoDB.Driver.Mql.Exists.html>`__,
68+
`MQL.IsMissing() <{+driver-api-root+}/MongoDB.Driver/MongoDB.Driver.Mql.IsMissing.html>`__,
69+
and `MQL.IsNullOrMissing() <{+driver-api-root+}/MongoDB.Driver/MongoDB.Driver.Mql.IsNullOrMissing.html>`__
70+
methods in LINQ queries. These methods work with both real and shadow properties.
71+
3272
.. _entity-framework-version-8.2:
3373

3474
What's New in 8.2

0 commit comments

Comments
 (0)