MongoGenericRepository 12.3.0
dotnet add package MongoGenericRepository --version 12.3.0
NuGet\Install-Package MongoGenericRepository -Version 12.3.0
<PackageReference Include="MongoGenericRepository" Version="12.3.0" />
<PackageVersion Include="MongoGenericRepository" Version="12.3.0" />
<PackageReference Include="MongoGenericRepository" />
paket add MongoGenericRepository --version 12.3.0
#r "nuget: MongoGenericRepository, 12.3.0"
#:package MongoGenericRepository@12.3.0
#addin nuget:?package=MongoGenericRepository&version=12.3.0
#tool nuget:?package=MongoGenericRepository&version=12.3.0
Straightforward, generic, extensible CRUD repository for MongoDB
| Product | Versions 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. |
-
.NETStandard 2.1
- Microsoft.Extensions.Options (>= 10.0.12)
- MongoDB.Driver (>= 3.12.0)
-
net10.0
- Microsoft.Extensions.Options (>= 10.0.12)
- MongoDB.Driver (>= 3.12.0)
-
net8.0
- Microsoft.Extensions.Options (>= 10.0.12)
- MongoDB.Driver (>= 3.12.0)
-
net9.0
- Microsoft.Extensions.Options (>= 10.0.12)
- MongoDB.Driver (>= 3.12.0)
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.3.0 | 631 | 10/2/2026 |
| 12.2.0 | 61 | 9/29/2026 |
| 12.1.0 | 715 | 9/10/2026 |
| 12.0.0 | 194 | 8/6/2026 |
| 11.0.0 | 3,136 | 5/27/2026 |
| 10.1.1 | 198 | 2/23/2026 |
| 10.1.0 | 290 | 1/16/2026 |
| 10.0.0 | 165 | 1/16/2026 |
| 9.0.4 | 659 | 4/16/2025 |
| 9.0.3 | 291 | 4/16/2025 |
| 9.0.2 | 292 | 4/15/2025 |
| 9.0.1 | 867 | 3/24/2025 |
| 9.0.0 | 307 | 11/20/2024 |
| 8.0.1 | 224 | 10/1/2024 |
| 8.0.0 | 937 | 11/16/2023 |
| 1.0.20 | 332 | 8/23/2023 |
| 1.0.19 | 433 | 4/28/2023 |
| 1.0.18 | 343 | 3/21/2023 |
| 1.0.17 | 406 | 12/28/2022 |
| 1.0.16 | 663 | 10/14/2022 |
A predicate passed to GetAll filters instead of becoming a sort key.
Fixed:
- GetAll(x => x.IsActive) bound to the sorting overload with TProperty = bool, because the type parameter of the filter overload cannot be inferred. It returned every document, sorted by the predicate, without a warning. A new non-generic GetAll(filter, page, pageSize, session) takes the predicate, so the same call now filters.
- GetAllDescending(x => x.IsActive) had the same trap. A descending order needs a sorting expression, so the call is now a compile error (CS0619) pointing to GetAllDescending(filter, sorting).
Added:
- GetAll(filter, page, pageSize, session, cancellationToken): LINQ predicate with optional paging, no sort, session-aware.
Behaviour change:
- Code that used a bool lambda to sort now gets only the matching documents. To keep the sort, name the argument: GetAll(sorting: x => x.IsActive) and GetAllDescending(sorting: x => x.IsActive). An explicit type argument alone is ambiguous with the obsolete generic filter overloads until v13.
- The binding is decided at compile time: code compiled against 12.2.0 or earlier, including libraries built on this package, keeps the old behaviour until it is recompiled.
- A derived repository that overrides the generic GetAll(sorting) to add its own logic should override the new GetAll(filter) as well.
- IReadOnlyDataRepository has two new members with default implementations; classes implementing the interface directly compile and load unchanged.
See CHANGELOG.md for the full notes.