C# ORM

Open-source C# projects categorized as ORM

Top 23 C# ORM Projects

  1. Entity Framework

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

    Project mention: Mastering EF Core Interceptors: Hook into the Pipeline with the Decorator Pattern | dev.to | 2025-04-19

    EF Core GitHub Repository

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. SqlSugar

    .Net aot ORM Fastest ORM DB2 Hana Simple Easy VB.NET 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

  4. FreeSql

    .NET aot orm, VB.NET/C# orm, Mysql/PostgreSQL/SqlServer/Oracle orm, Sqlite/Firebird/Clickhouse/DuckDB orm, 达梦/金仓/虚谷/翰高/高斯 orm, 神通 orm, 南大通用 orm, 国产 orm, TDengine orm, QuestDB orm, MsAccess orm. (by dotnetcore)

  5. 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, Oracle

    Project mention: Bulk Update with Entity Framework Core (EF Core) | dev.to | 2024-12-25

    This approach can be inefficient when dealing with a large number of records, leading to significant database overhead and longer execution times. To mitigate this, we can use techniques like batching, raw SQL queries, or third-party libraries like EFCore.BulkExtensions.

  6. FluentMigrator

    Fluent migrations framework for .NET

    Project mention: How To Create Migrations For Multiple Databases in EF Core | dev.to | 2025-02-04

    In our products we use EF Core and we need to create migrations that are supported for all 3 databases. And we use Fluent Migrator library for this purpose. It allows creating database migration using the fluent syntax that is further translated to the needed SQL for each particular database.

  7. LINQ to DB

    Linq to database provider.

    Project mention: Google's New Pipe Syntax in SQL | news.ycombinator.com | 2024-08-28

    There is https://github.com/linq2db/linq2db which is LINQ to SQL reincarnated.

    Of course there's EF Core too.

  8. Pomelo.EntityFrameworkCore.MySql

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

    Project mention: MySQL with EF Core 9 in ABP: Avoiding Translation Issues | dev.to | 2025-01-31

    ABP Framework's MySQL provider (Volo.Abp.EntityFrameworkCore.MySQL) relies on Pomelo.EntityFrameworkCore.MySql NuGet package. However, as of now, the stable 9.0.0 version of this package has not been released. (You can follow the upgrade status from https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/1841, if you want).

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. NHibernate

    NHibernate Object Relational Mapper

    Project mention: Introduction to Object-Relational Mappers (ORMs) | dev.to | 2024-08-13

    Documentation: NHibernate Documentation

  11. PetaPoco

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

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

  13. RepoDb

    A hybrid ORM library for .NET.

  14. Massive

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

  15. LINQKit

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

  16. Fluent NHibernate

    Fluent NHibernate!

  17. EntityFramework.Exceptions

    Strongly typed exceptions for Entity Framework Core. Supports SQLServer, PostgreSQL, SQLite, Oracle and MySql.

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

  19. sharding-core

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

  20. SmartSql

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

  21. Insight.Database

    Fast, lightweight .NET micro-ORM

  22. NPoco

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

  23. ExcelMapper

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

    Project mention: .NET: Integration Test for uploading csv/excel file via HttpClient | dev.to | 2025-02-07

    ExcelMapper for working with Excel file

  24. MicroOrm.Dapper.Repositories

    CRUD for Dapper

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

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

C# ORM discussion

Log in or Post with

C# ORM related posts

  • Mastering EF Core Interceptors: Hook into the Pipeline with the Decorator Pattern

    1 project | dev.to | 19 Apr 2025
  • Implementing temporal table auditing in software development projects

    1 project | dev.to | 21 Mar 2025
  • Entity Framework 9 - GroupBy throwing Exception

    1 project | dev.to | 18 Feb 2025
  • React Image Editor: Load and Save Images from a Database Easily

    1 project | dev.to | 10 Feb 2025
  • How To Create Migrations For Multiple Databases in EF Core

    1 project | dev.to | 4 Feb 2025
  • Diverse AI tools used for the C# developer

    4 projects | dev.to | 19 Jan 2025
  • Bulk Update with Entity Framework Core (EF Core)

    1 project | dev.to | 25 Dec 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 16 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

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

# Project Stars
1 Entity Framework 14,114
2 SqlSugar 5,559
3 FreeSql 4,221
4 EFCore.BulkExtensions 3,818
5 FluentMigrator 3,367
6 LINQ to DB 3,086
7 Pomelo.EntityFrameworkCore.MySql 2,821
8 NHibernate 2,147
9 PetaPoco 2,098
10 Dapper Extensions 1,801
11 RepoDb 1,801
12 Massive 1,797
13 LINQKit 1,721
14 Fluent NHibernate 1,663
15 EntityFramework.Exceptions 1,620
16 Entity Framework 6 1,443
17 sharding-core 1,209
18 SmartSql 1,117
19 Insight.Database 885
20 NPoco 860
21 ExcelMapper 845
22 MicroOrm.Dapper.Repositories 683
23 Npoi.Mapper 621

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that C# is
the 10th most popular programming language
based on number of references?