Skip to content

0.28.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 27 Feb 12:08
· 15 commits to main since this release

Major 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

Dependency Updates

Other Changes

Full Changelog: 0.27.0...0.28.0