C# ORM

Open-source C# projects categorized as ORM

Top 23 C# ORM Projects

  • Entity Framework

    EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

    Project mention: Multi-tenancy using schemas with Entity Framework and PostgreSQL | dev.to | 2023-10-16

    * You can check the original CreateMigration implementation at: https://github.com/dotnet/efcore/blob/release/7.0/src/EFCore.Relational/Migrations/Internal/MigrationsAssembly.cs

  • SqlSugar

    .Net aot 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 Object/Relational Mapping

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • FreeSql

    🦄 .NET aot 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. (by dotnetcore)

  • 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

    Project mention: Best way to do mass inserts with Entity Framework | /r/dotnet | 2023-06-08

    EF Core Bulk Extensions has helped me out many a day.

  • FluentMigrator

    Fluent migrations framework for .NET

    Project mention: Entity Framework Core Owned Entity | dev.to | 2024-02-15

    Fluent Migrator

  • LINQ to DB

    Linq to database provider.

    Project mention: Upserting complex data models from an API into EF Core entities | /r/dotnet | 2023-06-02
  • Pomelo.EntityFrameworkCore.MySql

    Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector

    Project mention: Mysql and Entity | /r/csharp | 2023-03-10

    EntityFramework uses providers to translate Linq queries into real queries and connect to the datasource and convert the data into .net readable format. The MySQL provider for .NET is the official one but I think it has fallen on hard times and is not developed as much as before. You should probably look at Pomelo, which is a community library for .net core: https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

  • NHibernate

    NHibernate Object Relational Mapper

    Project mention: help with NHibernate on .Net 6 | /r/csharp | 2023-03-28

    Have you tried the NH homepage?

  • PetaPoco

    Official PetaPoco, A tiny ORM-ish thing for your POCO's

    Project mention: Dapper vs. Entity Framework With Postgres | /r/dotnet | 2023-12-06
  • Massive

    A small, happy, dynamic MicroORM for .NET that will love you forever.

  • 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.

  • Fluent NHibernate

    Fluent NHibernate!

  • RepoDb

    A hybrid ORM library for .NET.

    Project mention: Dapper is die? | /r/dotnet | 2023-03-16

    What about repodb?

  • LINQKit

    LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.

    Project mention: What your hidden nuget gems ? | /r/dotnet | 2023-03-10

    I also enjoy LinqKit (mentioned here). Really cool way to build a LINQ predicate.

  • 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.

  • EntityFramework.Exceptions

    Handle database errors easily when working with Entity Framework Core. Supports SQLServer, PostgreSQL, SQLite, Oracle and MySql.

    Project mention: What your hidden nuget gems ? | /r/dotnet | 2023-03-10
  • sharding-core

    high performance lightweight solution for efcore sharding table and sharding database support read-write-separation .一款ef-core下高性能、轻量级针对分表分库读写分离的解决方案,具有零依赖、零学习成本、零业务代码入侵

  • SmartSql

    SmartSql = MyBatis in C# + .NET Core+ Cache(Memory | Redis) + R/W Splitting + PropertyChangedTrack +Dynamic Repository + InvokeSync + Diagnostics

  • NPoco

    Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco

  • Insight.Database

    Fast, lightweight .NET micro-ORM

    Project mention: What your hidden nuget gems ? | /r/dotnet | 2023-03-10
  • ExcelMapper

    An Excel to object mapper. Maps POCOs to and from Excel. Configuration via convention, attributes, or fluent methods.

  • MicroOrm.Dapper.Repositories

    CRUD for Dapper

  • Npoi.Mapper

    Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and Excel data via NPOI.

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-15.

C# ORM related posts

Index

What are some of the best open-source ORM projects in C#? This list will help you:

Project Stars
1 Entity Framework 13,133
2 SqlSugar 4,815
3 FreeSql 3,908
4 EFCore.BulkExtensions 3,368
5 FluentMigrator 3,091
6 LINQ to DB 2,826
7 Pomelo.EntityFrameworkCore.MySql 2,615
8 NHibernate 2,094
9 PetaPoco 2,042
10 Massive 1,799
11 Dapper Extensions 1,766
12 Fluent NHibernate 1,650
13 RepoDb 1,633
14 LINQKit 1,535
15 Entity Framework 6 1,403
16 EntityFramework.Exceptions 1,086
17 sharding-core 1,061
18 SmartSql 1,030
19 NPoco 835
20 Insight.Database 833
21 ExcelMapper 698
22 MicroOrm.Dapper.Repositories 621
23 Npoi.Mapper 566
The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com