OfX-MongoDb 5.0.17

dotnet add package OfX-MongoDb --version 5.0.17
                    
NuGet\Install-Package OfX-MongoDb -Version 5.0.17
                    
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="OfX-MongoDb" Version="5.0.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfX-MongoDb" Version="5.0.17" />
                    
Directory.Packages.props
<PackageReference Include="OfX-MongoDb" />
                    
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 OfX-MongoDb --version 5.0.17
                    
#r "nuget: OfX-MongoDb, 5.0.17"
                    
#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.
#addin nuget:?package=OfX-MongoDb&version=5.0.17
                    
Install OfX-MongoDb as a Cake Addin
#tool nuget:?package=OfX-MongoDb&version=5.0.17
                    
Install OfX-MongoDb as a Cake Tool

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.

Demo Project!


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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
5.0.17 247 3/23/2025
5.0.16 133 3/18/2025
5.0.15 134 3/17/2025
5.0.14 164 3/9/2025
5.0.13 198 3/6/2025
5.0.12 193 3/6/2025
5.0.11 94 3/2/2025
5.0.10 95 2/28/2025
5.0.9 83 2/28/2025
5.0.8 88 2/28/2025
5.0.7 86 2/27/2025
5.0.6 91 2/26/2025