OfX-MongoDb
8.2.6
dotnet add package OfX-MongoDb --version 8.2.6
NuGet\Install-Package OfX-MongoDb -Version 8.2.6
<PackageReference Include="OfX-MongoDb" Version="8.2.6" />
<PackageVersion Include="OfX-MongoDb" Version="8.2.6" />
<PackageReference Include="OfX-MongoDb" />
paket add OfX-MongoDb --version 8.2.6
#r "nuget: OfX-MongoDb, 8.2.6"
#:package OfX-MongoDb@8.2.6
#addin nuget:?package=OfX-MongoDb&version=8.2.6
#tool nuget:?package=OfX-MongoDb&version=8.2.6
OfX-MongoDb
OfX-MongoDb is an extension package for OfX that integrates with MongoDb to simplify data fetching by leveraging attribute-based data mapping. This extension streamlines data retrieval using MongoDb, reducing boilerplate code and improving maintainability.
MongoDb
OfX-MongoDb extends the core OfX library by providing seamless integration with MongoDb. This enables developers to automatically map and retrieve data directly from a database, leveraging the power of MongoDb along with attribute-based data mapping.
For example, suppose you have a UserId property in your model, and you want to fetch the corresponding Name
and Email fields from the database. By using OfX-EFCore, you can annotate your model with attributes, and the library
will handle data fetching for you.
Installation
To install the OfX-MongoDb package, use the following NuGet command:
dotnet add package OfX-MongoDb
Or via the NuGet Package Manager:
Install-Package OfX-MongoDb
How to Use
1. Register OfX-MongoDb
Add OfX-EfCore to your service configuration during application startup:
builder.Services.AddOfX(cfg =>
{
cfg.AddAttributesContainNamespaces(typeof(IKernelAssemblyMarker).Assembly);
cfg.AddModelConfigurationsFromNamespaceContaining<IAssemblyMarker>();
})
.AddMongoDb(cfg => cfg.AddCollection(memberSocialCollection));
Function Descriptions
AddMongoDb
Here, you can use the method AddMongoDb(), which takes AddCollection(s) to executing.
That all, Enjoy your moment!
| Package Name | Description | .NET Version | Document |
|---|---|---|---|
| Core | |||
| OfX | OfX core | 8.0, 9.0 | ReadMe |
| Data Providers | |||
| OfX-EFCore | This is the OfX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
| OfX-MongoDb | This is the OfX extension package using MongoDb to fetch data | 8.0, 9.0 | This Document |
| Integrations | |||
| OfX-HotChocolate | OfX.HotChocolate is an integration package with HotChocolate for OfX. | 8.0, 9.0 | ReadMe |
| Transports | |||
| OfX-gRPC | OfX.gRPC is an extension package for OfX that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Kafka | OfX-Kafka is an extension package for OfX that leverages Kafka for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Nats | OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-RabbitMq | OfX-RabbitMq is an extension package for OfX that leverages RabbitMq for efficient data transportation. | 8.0, 9.0 | ReadMe |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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. |
-
net8.0
- MongoDB.Driver (>= 3.2.1)
- OfX (>= 8.2.6)
-
net9.0
- MongoDB.Driver (>= 3.2.1)
- OfX (>= 8.2.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.2.6 | 86 | 1/28/2026 |
| 8.2.5 | 84 | 1/24/2026 |
| 8.2.4 | 81 | 1/19/2026 |
| 8.2.3 | 85 | 1/18/2026 |
| 8.2.2 | 86 | 1/18/2026 |
| 8.2.1 | 87 | 1/17/2026 |
| 8.2.0 | 87 | 1/17/2026 |
| 8.1.2 | 92 | 1/13/2026 |
| 8.1.1 | 90 | 1/13/2026 |
| 8.1.0 | 90 | 1/11/2026 |
| 8.0.0 | 94 | 1/3/2026 |
| 7.2.2 | 270 | 12/18/2025 |
| 7.2.1 | 604 | 12/1/2025 |
| 7.2.0 | 405 | 11/18/2025 |
| 7.2.0-preview | 402 | 11/18/2025 |
| 7.1.10 | 188 | 10/20/2025 |
| 7.1.9 | 177 | 10/17/2025 |
| 7.1.8 | 191 | 10/15/2025 |
| 7.1.7 | 190 | 10/15/2025 |
| 7.1.6 | 192 | 10/7/2025 |
| 7.1.5 | 178 | 10/5/2025 |
| 7.1.4 | 199 | 9/24/2025 |
| 7.1.3 | 205 | 9/23/2025 |
| 7.1.2 | 193 | 9/23/2025 |
| 7.1.1 | 254 | 8/28/2025 |
| 7.1.0 | 187 | 8/13/2025 |
| 7.0.6 | 272 | 8/7/2025 |
| 7.0.5 | 271 | 8/6/2025 |
| 7.0.4 | 192 | 8/4/2025 |
| 7.0.3 | 136 | 7/4/2025 |
| 7.0.2 | 227 | 6/19/2025 |
| 7.0.1 | 172 | 6/19/2025 |
| 7.0.0 | 309 | 6/9/2025 |
| 6.0.2 | 226 | 5/26/2025 |
| 6.0.1 | 191 | 5/25/2025 |
| 6.0.0 | 202 | 5/20/2025 |
| 6.0.0-beta1 | 196 | 5/20/2025 |
| 5.0.22 | 197 | 5/5/2025 |
| 5.0.21 | 133 | 4/26/2025 |
| 5.0.20 | 147 | 4/26/2025 |
| 5.0.19 | 218 | 4/22/2025 |
| 5.0.18 | 242 | 4/13/2025 |
| 5.0.17 | 318 | 3/23/2025 |
| 5.0.16 | 206 | 3/18/2025 |
| 5.0.15 | 211 | 3/17/2025 |
| 5.0.14 | 235 | 3/9/2025 |
| 5.0.13 | 273 | 3/6/2025 |
| 5.0.12 | 266 | 3/6/2025 |
| 5.0.11 | 165 | 3/2/2025 |
| 5.0.10 | 171 | 2/28/2025 |
| 5.0.9 | 151 | 2/28/2025 |
| 5.0.8 | 157 | 2/28/2025 |
| 5.0.7 | 161 | 2/27/2025 |
| 5.0.6 | 158 | 2/26/2025 |