0.28.0
Pre-releaseMajor changes to the internal mapping system for MongoFramework to support a fluent mapping system. This new system will now power the existing attribute mapping system internally.
As part of the change, breaking changes have occurred to a number of infrastructure-level types and systems. Contexts, DB sets and other common types are unchanged or backwards compatible however types more strictly related to entity mapping or entity definitions have had a major overhaul.
To use the new fluent mapping builder, you can override void OnConfigureMapping(MappingBuilder mappingBuilder)
on your DB context, using the mapping builder in a similar way to you would with Entity Framework. For more information, view the MongoFramework readme.
If you encounter any new mapping or serialization issues with the update, please raise an issue on GitHub.
Additionally, an update to the MongoDB driver (v2.19.0) has been added to MongoFramework. This version of the driver makes default a new internal LINQ implementation called "LINQ3". However due to the low-level integration between the MongoDB driver and MongoFramework, LINQ3 is currently not supported.
When you create a new MongoDbConnection
, MongoFramework will internally tell the driver to use the previous LINQ implementation for now. This allows use of the newer driver for the time being until MongoFramework is updated for LINQ3 support. This internal setting via the MongoDbConnection
affects only the instance of the MongoClient
that is being directly used.
All Changes
⚠ Breaking Changes
- Split mapping of EntityDefinition and BsonClassMap by @Turnerj in #335
- Mapping Builder Support by @Turnerj in #336
Dependency Updates
- Bump System.Linq.Async from 5.1.0 to 6.0.1 by @dependabot in #280
- Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0 by @dependabot in #283
- Bump Moq from 4.16.1 to 4.17.1 by @dependabot in #284
- Bump coverlet.collector from 3.1.1 to 3.1.2 by @dependabot in #282
- Bump Moq from 4.17.1 to 4.17.2 by @dependabot in #285
- Bump MongoDB.Driver from 2.14.1 to 2.15.0 by @dependabot in #287
- Bump MSTest.TestFramework from 2.2.8 to 2.2.10 by @dependabot in #290
- Bump MSTest.TestAdapter from 2.2.8 to 2.2.10 by @dependabot in #291
- Bump MongoDB.Driver from 2.15.0 to 2.15.1 by @dependabot in #293
- Bump MongoDB.Driver from 2.15.1 to 2.16.0 by @dependabot in #298
- Bump MongoDB.Driver from 2.16.0 to 2.16.1 by @dependabot in #299
- Bump Moq from 4.17.2 to 4.18.1 by @dependabot in #296
- Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0 by @dependabot in #294
- Bump MongoDB.Driver from 2.16.1 to 2.17.0 by @dependabot in #300
- Bump Moq from 4.18.1 to 4.18.2 by @dependabot in #302
- Bump MongoDB.Driver from 2.17.0 to 2.17.1 by @dependabot in #301
- Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.0 by @dependabot in #304
- Bump Microsoft.NETFramework.ReferenceAssemblies from 1.0.2 to 1.0.3 by @dependabot in #305
- Bump BenchmarkDotNet from 0.13.1 to 0.13.2 by @dependabot in #306
- Bump Microsoft.NET.Test.Sdk from 17.3.0 to 17.3.1 by @dependabot in #307
- Bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2 by @dependabot in #309
- Bump MongoDB.Driver from 2.17.1 to 2.18.0 by @dependabot in #310
- Bump System.Configuration.ConfigurationManager from 6.0.0 to 6.0.1 by @dependabot in #308
- Bump coverlet.collector from 3.1.2 to 3.2.0 by @dependabot in #311
- Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.4.0 by @dependabot in #314
- Bump Moq from 4.18.2 to 4.18.3 by @dependabot in #315
- Bump MSTest.TestFramework from 2.2.10 to 3.0.1 by @dependabot in #322
- Bump MSTest.TestAdapter from 2.2.10 to 3.0.1 by @dependabot in #321
- Bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.4.1 by @dependabot in #320
- Bump System.Configuration.ConfigurationManager from 6.0.1 to 7.0.0 by @dependabot in #313
- Bump Microsoft.Bcl.AsyncInterfaces from 6.0.0 to 7.0.0 by @dependabot in #312
- Update actions/upload-artifact action to v3 by @renovate in #332
- Update codecov/codecov-action action to v3 by @renovate in #333
- Update dependency MongoDB.Driver to v2.19.0 by @renovate in #337
Other Changes
- Fix MacOS CI Builds by @Turnerj in #303
- Update how MongoDB installed for CI Builds by @Turnerj in #323
- Configure Renovate by @renovate in #325
- Update codecov/codecov-action action to v1.5.2 by @renovate in #326
- Update actions/checkout action to v3 by @renovate in #327
- Update actions/download-artifact action to v3 by @renovate in #329
- Update actions/setup-dotnet action to v3 by @renovate in #330
Full Changelog: 0.27.0...0.28.0