A C# library providing an Entity Framework-like interface for MongoDB, featuring change tracking, fluent mapping, and entity buckets.
MongoFramework is a C# object-relational mapper (ORM) that provides an Entity Framework-like interface for MongoDB. It allows .NET developers to interact with MongoDB using familiar patterns such as DbContext, change tracking, and LINQ queries, abstracting away low-level driver complexity.
C# developers building applications with MongoDB who prefer Entity Framework's high-level abstractions and productivity features.
It reduces MongoDB-specific boilerplate, offers robust features like diff updates and entity buckets, and integrates seamlessly with the official MongoDB driver, making it a natural choice for EF developers transitioning to MongoDB.
An "Entity Framework"-like interface for MongoDB
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements DbContext and DbSet interfaces, allowing C# developers to use LINQ queries and change tracking just like in EF, easing the transition from SQL databases.
Tracks entity changes and writes only modified fields to the database, reducing network traffic and improving update performance.
Supports indexing via attributes or fluent mapping, including text and geospatial indexes, simplifying database optimization without manual index management.
Provides built-in support for the bucket pattern, clustering small documents to improve index performance as recommended by MongoDB best practices.
Only one official extension (for MiniProfiler) is available, which may limit integration with other tools compared to more established ORMs.
The README explicitly states that entity buckets are 'currently limited to add data only,' restricting update and delete operations for bucketed entities.
Adds a layer over the MongoDB driver, which can introduce performance overhead and reduce flexibility for complex, optimized queries.
MongoFramework is an open-source alternative to the following products: