MongoGenericRepository 12.1.0

dotnet add package MongoGenericRepository --version 12.1.0
                    
NuGet\Install-Package MongoGenericRepository -Version 12.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MongoGenericRepository" Version="12.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MongoGenericRepository" Version="12.1.0" />
                    
Directory.Packages.props
<PackageReference Include="MongoGenericRepository" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MongoGenericRepository --version 12.1.0
                    
#r "nuget: MongoGenericRepository, 12.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MongoGenericRepository@12.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MongoGenericRepository&version=12.1.0
                    
Install as a Cake Addin
#tool nuget:?package=MongoGenericRepository&version=12.1.0
                    
Install as a Cake Tool

Straightforward, generic, extensible CRUD repository for MongoDB

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MongoGenericRepository:

Package Downloads
MongoGenericRepository.HealthChecks

Optional HealthChecks Add-On for MongoGenericRepository (checks ReadOnly / ReadWrite connections).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.1.0 76 9/10/2026
12.0.0 179 8/6/2026
11.0.0 1,348 5/27/2026
10.1.1 186 2/23/2026
10.1.0 277 1/16/2026
10.0.0 151 1/16/2026
9.0.4 646 4/16/2025
9.0.3 279 4/16/2025
9.0.2 282 4/15/2025
9.0.1 840 3/24/2025
9.0.0 297 11/20/2024
8.0.1 212 10/1/2024
8.0.0 927 11/16/2023
1.0.20 322 8/23/2023
1.0.19 423 4/28/2023
1.0.18 335 3/21/2023
1.0.17 401 12/28/2022
1.0.16 653 10/14/2022
1.0.15 547 10/7/2022
1.0.14 1,038 4/22/2022
Loading failed

Serialization conventions are now configurable instead of having to be attributed on every entity class.

   Added:
   - MongoDbOptions.Serialization (MongoSerializationOptions) switches on the driver's IgnoreExtraElements and IgnoreIfNull conventions. The motivation is schema evolution: during a rolling update, instances running the newer schema write fields the older ones do not declare, which a strict driver turns into a FormatException. Both switches are independent bool? values and register nothing while unset, so an application that does not configure them keeps the behaviour of 12.0.0.
   - Namespaces and TypeFilter, combined by AND, limit the conventions to part of the type graph. Namespaces match whole segments: "MyApp.Orders" covers "MyApp.Orders.Archive" but not "MyApp.OrdersArchive". TypeFilter can only be set from code, as the configuration binder skips delegate properties. A Namespaces list that holds nothing usable is rejected rather than quietly covering every type.
   - MongoRepositoryConventions.Register applies the options explicitly and belongs at the start of application start-up; Unregister removes the pack again. Options are validated before the registry is touched, and ConventionPackName may not take over the driver's own pack names. Applications that never call Register get them from the first EntityContext constructed with options that ask for a convention.

   Worth knowing:
   - Conventions only reach class maps the driver builds afterwards, and a class map is built once per type and per process.
   - Attributes win over conventions: [BsonIgnoreExtraElements(false)] keeps an entity strict even while a tolerant convention is registered.
   - IgnoreIfNull changes the stored document, not only the read path: a null property is absent instead of stored as null, which $exists filters and sparse or partial indexes react to.

   See CHANGELOG.md for the full notes.