Description
An easy to use library to use MongoDB with .NET. It implements a Repository pattern on top of Official MongoDB C# driver. This project is now available as a NuGet package for your convenience. If you're new to NuGet, check it out; it's painless, easy and fast. You can find this project by searching for MongoRepository in NuGet (or simply clicking here).
Check the documentation for a step-by-step example and more advanced usage.
MongoDB Repository pattern implementation alternatives and similar packages
Based on the "ORM" category.
Alternatively, view MongoDB Repository pattern implementation alternatives based on common mentions on social networks and blogs.
-
TypeORM
ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms. -
Dapper
Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper] -
Entity Framework
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. -
SqlSugar
.Net ORM Fastest ORM Simple Easy Sqlite orm Oracle ORM Mysql Orm postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm -
FreeSql
🦄 .NET orm, C# orm, VB.NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, 虚谷 orm, 国产 orm, Clickhouse orm, QuestDB orm, MsAccess orm. -
FluentMigrator
Fluent migrations framework for .NET -
NHibernate
NHibernate Object Relational Mapper -
EFCore.BulkExtensions
Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite -
LINQ to DB
Linq to database provider. -
PetaPoco
Official PetaPoco, A tiny ORM-ish thing for your POCO's -
ServiceStack.OrmLite
Fast, Simple, Typed ORM for .NET -
Fluent NHibernate
Fluent NHibernate! -
Dapper Extensions
Dapper Extensions is a small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs. For more advanced querying scenarios, Dapper Extensions provides a predicate system. The goal of this library is to keep your POCOs pure by not requiring any attributes or base class inheritance. -
Entity Framework 6
This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore. -
Massive
A small, happy, dynamic MicroORM for .NET that will love you forever. -
LINQKit
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users. -
NPoco
Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco -
SmartSql
SmartSql = MyBatis in C# + .NET Core+ Cache(Memory | Redis) + R/W Splitting + PropertyChangedTrack +Dynamic Repository + InvokeSync + Diagnostics -
MicroOrm.Dapper.Repositories
CRUD for Dapper -
SQLProvider
A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides. -
LINQ to Twitter
LINQ Provider for the Twitter API (C# Twitter Library) -
Dapper.FastCRUD
fast & light .NET ORM for strongly typed people -
BL Toolkit
Business Logic Toolkit for .NET -
MongoDB.Entities
A data access library for MongoDB with an elegant api, LINQ support and built-in entity relationship management -
JsonFlatFileDataStore
Simple JSON flat file data store with support for typed and dynamic data. -
MongoFramework
An "Entity Framework"-like interface for MongoDB -
LINQtoCSV
Popular, easy to use library to read and write CSV files. -
Tortuga Chain
A fluent ORM for .NET -
DbExtensions
Data-access framework with a strong focus on query composition, granularity and code aesthetics. -
NReco.Data
Fast DB-independent DAL for .NET Core: abstract queries, SQL commands builder, schema-less data access, POCO mapping (micro-ORM). -
AsyncPoco
A long-"awaited" fully asynchronous PetaPoco fork -
Venflow
A brand new, fast and lightweight ORM, build for PostgreSQL. -
MicroLite ORM
MicroLite ORM framework -
Linq.Expression.Optimizer
System.Linq.Expression expressions optimizer. http://thorium.github.io/Linq.Expression.Optimizer -
KonfDB
Configuration as a Service for multi-tenant, cross-platform applications -
Dashing
Dashing is a simple to use mini ORM built on top of Dapper -
MapDataReader
Super fast mapping DataReader to strongly typed object, Using AOT source generator. -
Dapper.MicroCRUD
CRUD Extensions for Dapper.Net -
ObjectStore
.Net Or-Mapper working with dynamically implemented abstract Classes -
MongoRiver.NET
A library for writing .NET MongoDB oplog tailers. -
DatabaseObjects
.NET Object Relational Mapping Tool -
Zonkey
Zonkey ORM (and then some) libraries for .Net -
EntityFramework.DatabaseMigrator
EntityFramework.DatabaseMigrator is a WinForms utility to help manage Entity Framework 6.0+ migrations. -
Exodus
Simple C# database migrator for .NET Core. -
AutoClutch
Generic repository and generic service. -
Dapper.CX
A Crud library based on Dapper -
Excel2SqlServer
Library for importing Excel spreadsheets into SQL Server tables
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of MongoDB Repository pattern implementation or a related project?
Popular Comparisons
README
Project Description
An easy to use library to use MongoDB with .NET. It implements a Repository pattern on top of Official MongoDB C# driver. This project is now available as a NuGet package for your convenience. If you're new to NuGet, check it out; it's painless, easy and fast. You can find this project by searching for MongoRepository in NuGet (or simply clicking here).
Check the documentation for a step-by-step example and more advanced usage.
Example:
// The Entity base-class is provided by MongoRepository
// for all entities you want to use in MongoDb
public class Customer : Entity
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
public class CustomerRepoTest
{
public void Test()
{
var repo = new MongoRepository<Customer>();
// adding new entity
var newCustomer = new Customer {
FirstName = "Steve",
LastName = "Cornell"
};
repo.Add(newCustomer);
// searching
var result = repo.Where(c => c.FirstName == "Steve");
// updating
newCustomer.LastName = "Castle";
repo.Update(newCustomer);
}
}