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.
-
Dapper
A simple object mapper for .NET by StackExchange -
TypeORM
Data-Mapper ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases. Works in Node.js and Browser. -
Entity Framework
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects -
FreeSql
FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And MsAccess. -
NHibernate
NHibernate Object Relational Mapper -
FluentMigrator
Fluent Migrations framework for .net -
Fluent NHibernate
Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. -
PetaPoco
A tiny ORM-ish thing for your POCOs -
ServiceStack.OrmLite
Light, simple and fast convention-based POCO ORM [Free for OSS] [$] -
LINQ to DB
The fastest LINQ database access library offering a simple, light, fast, and type-safe layer between your POCO objects and your database. -
Dapper Extensions
Small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs -
Massive
A small, happy, data access tool that will love you forever. -
Entity Framework 6
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects -
NPoco
Simple microORM that maps the results of a query onto a POCO object. Based on Schotime's branch of PetaPoco -
SmartSql
SmartSql = MyBatis + Cache(Memory | Redis)+ ZooKeeper + R / W Splitting + Dynamic Repository .... -
LINQKit
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users. -
MicroOrm.Dapper.Repositories
Repository for CRUD operations -
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 (Twitter Library) -
Dapper.FastCRUD
The fastest micro-orm extension for Dapper -
BL Toolkit
Business Logic Toolkit for .NET -
LINQtoCSV
Popular, easy to use library to read and write CSV files. -
DbExtensions
Data-access framework with a strong focus on query composition, granularity and code aesthetics. -
JsonFlatFileDataStore
Simple JSON flat file data store with support for typed and dynamic data. -
NReco.Data
Lightweight provider-independent DAL for .NET Core: abstract query, SQL command builder, CRUD operations, object mapping.. -
AsyncPoco
A long-"awaited" fully asynchronous PetaPoco fork -
MongoFramework
An "Entity Framework"-like interface for MongoDB -
MicroLite ORM
MicroLite ORM is a micro Object Relational Mapper for the .NET framework. It is designed to be easy to use, extensible and testable. -
Linq.Expression.Optimizer
System.Linq.Expression expressions optimizer. -
Venflow
A super fast and lightweight ORM for PostgreSQL. -
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. -
Limebean
Hybrid ORM which uses SQL fragments and doesn't require Model Classes. -
Jerrycurl
Razor-powered ORM for .NET and SQL lovers -
Dapper.MicroCRUD
CRUD Extensions for Dapper.Net -
MongoRiver.NET
A library for writing .NET MongoDB oplog tailers. -
DatabaseObjects
.NET Object Relational Mapping Tool -
AutoClutch
Generic repository and generic service. -
EntityFramework.DatabaseMigrator
EntityFramework.DatabaseMigrator is a WinForms utility to help manage Entity Framework 6.0+ migrations. -
Exodus
Simple C# database migrator for .NET Core. -
Dapper.CX
A Crud library based on Dapper -
Excel2SqlServer
Library for importing Excel spreadsheets into SQL Server tables -
LLBLGen Pro
Entity Modeling solution for Entity Framework, NHibernate, Linq to SQL and its own ORM framework: LLBLGen Pro Runtime Framework. [$][Free Lite version] -
Entity Framework Core
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects
Pixel-Perfect Multi-Platform Applications with C# and XAML
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
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);
}
}